setlocale should say that LANGUAGE is used before LANG

Bug #872343 reported by Sylvestre Ledru
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
New
Undecided
Unassigned
manpages (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Hi,

It would be nice to have the manpage of setlocale updated to declare that the env variable "LANGUAGE" will be read to get the language.
It should also state that the variable LANGUAGE will be the first one (before LC_ALL or LANG).

Thanks.
For the record, the bug #700213 describes a problem about that.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

documentation of the meaning and hierarchy of LANG, LANGUAGE and LC_ is scattered across a number of places which I agree is unfortunate. See bug 311558 for another example. I'd think that having it documented in only one place and have other manpages refer to that places would be the way to go.

Changed in gettext (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Colin Watson (cjwatson)
affects: gettext (Ubuntu) → manpages (Ubuntu)
Revision history for this message
Stéphane Aulery (lkppo) wrote :

I close this bug and merge its comment with bug #311558 because it concerns the total rewrite on local which must be taken as a whole.

Changed in manpages (Ubuntu):
status: Confirmed → Incomplete
Stéphane Aulery (lkppo)
Changed in manpages (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Michael Kerrisk (mtk-manpages) wrote :

Regarding the initial report:

[[
It would be nice to have the manpage of setlocale updated to declare that the env variable "LANGUAGE" will be read to get the language. It should also state that the variable LANGUAGE will be the first one (before LC_ALL or LANG).
]]

This appears incorrect to me. setlocale(3) is, as far as I know, ignorant of LANGUAGE. Only gettext(3) knows about LANGUAGE.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.