diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2016-02-01 18:14:47 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-02-20 05:01:52 +0100 |
commit | c1bb41a0378736e0fdd535541daa8cd7d09a4cc6 (patch) | |
tree | decb94668a0f374cd996fdbbb227cee82a09f8f8 /doc | |
parent | 252183b4093b8c82ad19159d23bdd2cf0e2d574e (diff) | |
download | pacman-c1bb41a0378736e0fdd535541daa8cd7d09a4cc6.tar.gz pacman-c1bb41a0378736e0fdd535541daa8cd7d09a4cc6.tar.xz |
dump_pkg_info: fix wide character title alignment
The padding added to the end of the title was based on the return value
of mbstowcs which is the number of characters. This caused alignment
issues for languages with characters that span multiple columns.
Instead, base the padding on the number of columns needed by the
translated string as returned by wcswidth.
Fixes #47980
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions