pacman/src
Chih-Hsuan Yen 4533c6a8e0 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>
2020-09-23 17:12:01 +10:00
..
common Remove autotools support 2020-06-01 10:59:08 +10:00
pacman util.c: table_print_line: properly align texts involving CJK 2020-09-23 17:12:01 +10:00
util Remove autotools support 2020-06-01 10:59:08 +10:00