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

Bug#526881: locale: should issue better warning about unsupported values



Package: libc6
Version: 2.9-4
Severity: wishlist

When eg. LC_CTYPE gets set by error with double-quotes inside (eg. by
wrongly writing LC_CTYPE="foo" in /etc/environment), then nothing
distinguishes the set-but-wrong variable from a defaulted one in the
locale(1) output, and the messages themselves are not really
self-explainatory:

$ LANG=fr_FR.UTF-8 LC_CTYPE='"fr_FR.UTF-8"' locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Ne peut initialiser LC_ALL ? la locale par d?faut: Aucun fichier
ou dossier de ce type
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=





Reply to: