l10n: `LC_ALL` is ignored
Open
Nobody has claimed this yet.
good first issue
J - Locale
U - All
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing locale selection for the sleep --help command, comparing how LC_ALL and LANG are read. Reproduce the French output with both environment variables and identify the differing behavior; done means LC_ALL=fr_FR.UTF-8 sleep --help uses the French translation like LANG does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100