[Top][All Lists]

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

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

From: Werner LEMBERG
Subject: problem with `LANG=C.utf8` and `LANGUAGE`
Date: Thu, 10 Nov 2022 20:44:30 +0000 (UTC)

[gettext 0.21.1]

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.

I consider this a real problem since you get undetermined behaviour:
programs like GNU `awk` or `makeinfo` (which is a Perl script) behave
differently depending on the input encoding, and `LANG=C` doesn't
specify the input encoding.

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.


reply via email to

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