aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-05-01 18:33:25 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-05-01 18:33:25 +0300
commit2f4281a1001dcf7fdf1418c0c0d246c16561fb65 (patch)
tree5761ae7495f4175de0d7db504982f0ef6a3f573f
parentUpdate THANKS. (diff)
downloadxz-2f4281a1001dcf7fdf1418c0c0d246c16561fb65.tar.xz
xz: Fix xz -lvv column alignment to look at the translated strings.
-rw-r--r--src/xz/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/list.c b/src/xz/list.c
index c20beadd..a6cc4c34 100644
--- a/src/xz/list.c
+++ b/src/xz/list.c
@@ -226,7 +226,7 @@ init_colon_strs(void)
size_t width_max = 0;
for (unsigned i = 0; i < ARRAY_SIZE(colon_strs); ++i) {
- widths[i] = tuklib_mbstr_width(colon_strs[i], &lens[i]);
+ widths[i] = tuklib_mbstr_width(_(colon_strs[i]), &lens[i]);
// If debugging is enabled, catch invalid strings with
// an assertion. However, when not debugging, use the
@@ -258,7 +258,7 @@ init_headings(void)
{
for (unsigned i = 0; i < ARRAY_SIZE(headings); ++i) {
size_t len;
- size_t w = tuklib_mbstr_width(headings[i].str, &len);
+ size_t w = tuklib_mbstr_width(_(headings[i].str), &len);
// Error handling like in init_colon_strs().
assert(w != (size_t)-1);