Bug#632798: libc6: broken LANGUAGE design

2011-07-07 Thread Jonathan Nieder
Vincent Lefevre wrote: > On 2011-07-07 18:46:38 -0500, Jonathan Nieder wrote: >> If ssh were to transmit it and let it >> override /etc/default/locale, wouldn't sending LANGUAGE="" work? > > Only if LANGUAGE is set. True. In particular, if the user doesn't know to defend against a remote LANGUAG

Bug#632798: libc6: broken LANGUAGE design

2011-07-07 Thread Vincent Lefevre
On 2011-07-07 19:30:38 -0500, Jonathan Nieder wrote: > > My settings come from the installation. /etc/default/locale was: > > > > # File generated by update-locale > > #LANG="en_US.UTF-8" > > LANGUAGE="en_US:en" > > > > (I only added a LC_TIME=en_DK since, hoping it would be taken into > > account

Bug#632798: libc6: broken LANGUAGE design

2011-07-07 Thread Vincent Lefevre
On 2011-07-07 18:46:38 -0500, Jonathan Nieder wrote: > Vincent Lefevre wrote: > > Now, if LANGUAGE is set in /etc/default/locale, this change may not > > solve the problem due to: > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=313317 > > Wow. The upstream discussion went nowhere fast.

Bug#632798: libc6: broken LANGUAGE design

2011-07-07 Thread Jonathan Nieder
Hi again, One more quick comment. Vincent Lefevre wrote: > My settings come from the installation. /etc/default/locale was: > > # File generated by update-locale > #LANG="en_US.UTF-8" > LANGUAGE="en_US:en" > > (I only added a LC_TIME=en_DK since, hoping it would be taken into > account for the

Bug#632798: libc6: broken LANGUAGE design

2011-07-07 Thread Jonathan Nieder
Vincent Lefevre wrote: > My settings come from the installation. /etc/default/locale was: > > # File generated by update-locale > #LANG="en_US.UTF-8" > LANGUAGE="en_US:en" Ah. localechooser sets LANGUAGE up, and then update-locale from the "locales" package preserves it. The weird part is that

Bug#632798: libc6: broken LANGUAGE design

2011-07-06 Thread Vincent Lefevre
Hi Jonathan, On 2011-07-05 22:22:51 -0500, Jonathan Nieder wrote: > 1. On my local machine, I could not reproduce the same effect. That's >probably because no default locale is configured here. After making >the default locale de_DE.UTF-8 using "dpkg-reconfigure -plow locales", >/etc

Bug#632798: libc6: broken LANGUAGE design

2011-07-05 Thread Jonathan Nieder
Jonathan Nieder wrote: > 4. Despite what the gettext manual[*] says, setting LANG does not cause >LANGUAGE to take effect. This is another bug, as far as I can tell. > > $ LANG=en_US LANGUAGE=de_DE cp > cp: missing file operand > Try `cp --help' for more information. The ab

Bug#632798: libc6: broken LANGUAGE design

2011-07-05 Thread Jonathan Nieder
Hi Vincent, Vincent Lefevre wrote: > LANGUAGE= [...] > LC_MESSAGES=fr_FR [...] > ypig% ssh localhost locale > Connected to ypig (from ::1) > LANG=POSIX > LANGUAGE=en_US:en [...] > LC_MESSAGES=fr_FR [...] > LC_ALL= [...] > The problem is that the system sets LANGUAGE in the user's back, so > that

Bug#632798: libc6: broken LANGUAGE design

2011-07-05 Thread Vincent Lefevre
Package: libc6 Version: 2.13-10 Severity: normal The current LANGUAGE design is broken. Here an example: ypig% locale LANG=POSIX LANGUAGE= LC_CTYPE=en_US.ISO8859-1 LC_NUMERIC="POSIX" LC_TIME=en_DK LC_COLLATE=POSIX LC_MONETARY="POSIX" LC_MESSAGES=fr_FR LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="