uutils/coreutils

l10n: `LC_ALL` is ignored

Open

#8.922 geöffnet am 16. Okt. 2025

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Rust (1.852 Forks)batch import
J - LocaleU - Allgood first issue

Repository-Metriken

Stars
 (23.246 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 23h) (239 gemergte PRs in 30 T)

Beschreibung

When setting the locale with LC_ALL, we ignore the specified locale and always use the English locale:

$ LC_ALL=fr_FR.UTF-8 cargo run -q sleep --help
Pause for NUMBER seconds.

Usage: sleep NUMBER[SUFFIX]...
       sleep OPTION
// snipped the rest of the output

It works fine with LANG:

$ LANG=fr_FR.UTF-8 cargo run -q sleep --help
Faire une pause de NOMBRE secondes.

Utilisation: sleep NOMBRE[SUFFIXE]...
       sleep OPTION
// snipped the rest of the output

GNU supports both environment variables:

$ LC_ALL=fr_FR.UTF-8 sleep --help
Utilisation : sleep NOMBRE[SUFFIXE]...
         ou : sleep OPTION
// snipped the rest of the output
$ LANG=fr_FR.UTF-8 sleep --help
Utilisation : sleep NOMBRE[SUFFIXE]...
         ou : sleep OPTION
// snipped the rest of the output

Contributor Guide