]> granicus.if.org Git - xz/commitdiff
xz: Fix xz -lvv column alignment to look at the translated strings.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 1 May 2019 15:33:25 +0000 (18:33 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 1 May 2019 15:33:25 +0000 (18:33 +0300)
src/xz/list.c

index c20beaddb9fbbbe9fd2f82121dab34e49b741e0f..a6cc4c348925c20156f682ea77d132ed85cddbca 100644 (file)
@@ -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);