bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argp --help formatting bug with non-ASCII characters


From: Lasse Collin
Subject: Re: argp --help formatting bug with non-ASCII characters
Date: Sat, 13 Apr 2024 22:03:13 +0300

On 2024-04-12 Bruno Haible wrote:
> How to reproduce:
> 1. Build GNU tar (1.33 or 1.35, for example).
> 2. Install it.
> 3. You can see misindentation:
> $ LC_ALL=de_DE.UTF-8 src/tar --help
> 
> ...
>                              abzubilden
>       --mode=ÄNDERUNGEN     den (symbolischen) Modus ÄNDERUNGEN für
>                              hinzugefügte Dateien erzwingen
[...]
> In other words, it should use the Gnulib module 'mbswidth'.

This is one of the issues. The other one is with the wrapping of the
description text. It counts 1 byte == 1 column but in languages which
mostly use non-ASCII chars it can be mostly 2 bytes == 1 column. Then
the wrapping occurs far too early, resulting in narrow output.

-- 
Lasse Collin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]