[Top][All Lists]

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

Re: problem with `LANG=C.utf8` and `LANGUAGE`

From: Bruno Haible
Subject: Re: problem with `LANG=C.utf8` and `LANGUAGE`
Date: Sat, 12 Nov 2022 02:46:58 +0100

Hi Werner,

> In the gettext info manual there is the following sentence:
> > The variable `LANGUAGE` is ignored if the locale is set to ‘C’.
> Unfortunately, it fails for `C.utf8`:
> ```
> > LANG=C LANGUAGE=fr ls --help
> Usage: ls [OPTION]... [FILE]...
> List information about the FILEs (the current directory by default).
> Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
> ...
> > LANG=C.utf8 LANGUAGE=fr ls --help
> Utilisation : ls [OPTION]... [FICHIER]...
> Afficher des renseignements sur les FICHIERs (du répertoire actuel par 
> défaut).
> Trier les entrées alphabétiquement si aucune des options -cftuvSUX ou --sort
> ne sont utilisées.
> ...
> ```

Thanks for the report. I assume your report is about a glibc system;
therefore I have reproduced it with glibc and reported a glibc bug:

For future bug reports, please note that it is better to use LC_ALL
instead of LANG, because LANG can be overridden by LC_* variables, as
documented in

> My suggestion is to modify the gettext behaviour: The variable
> `LANGUAGE` should be ignored if the locale is set to 'C', irrespective
> of the selected encoding.

I will do that if the bug gets fixed on the glibc side (as I would expect).

Thanks for the (important) report!


reply via email to

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