diff options
author | Chih-Hsuan Yen <yan12125@gmail.com> | 2020-09-13 10:41:40 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-09-23 09:12:01 +0200 |
commit | 4533c6a8e0f39c7707e671b7f9687607b46f1417 (patch) | |
tree | a703a8c6a108b8b25727d5ad2bb7c64ae4455462 /doc/PKGBUILD.5.asciidoc | |
parent | ff7ff3c58dcdb858c253e8e7fea1d758cdff0312 (diff) | |
download | pacman-4533c6a8e0f39c7707e671b7f9687607b46f1417.tar.gz pacman-4533c6a8e0f39c7707e671b7f9687607b46f1417.tar.xz |
util.c: table_print_line: properly align texts involving CJK
For printf in C, width is counted as bytes rather than Unicode width. [1]
> If the precision is specified, no more than that many bytes are written.
[1] Section 7.21.6, N2176, final draft for ISO/IEC 9899:2017 (C18)
Thanks Andrew Gregory for suggesting a simpler approach.
Fixes FS#59229
Signed-off-by: Chih-Hsuan Yen <yan12125@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'doc/PKGBUILD.5.asciidoc')
0 files changed, 0 insertions, 0 deletions