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

Bug#632798: libc6: broken LANGUAGE design



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.  Have you tried the
> patch, and does it work well?

No, I haven't tried it. My current workaround is to more or less force
the locales settings in my .zshenv (this is a bit more complex because
I share my config among various systems).

> > However, even if this ssh bug is fixed, in case LANGUAGE is not
> > defined on the ssh client's side, the system must not set it by
> > default in the user's back. So, in short, LANGUAGE should not be
> > set in /etc/default/locale.
> 
> I am not sure I agree, even though I have my system set up locally
> not to define LANGUAGE.  If ssh were to transmit it and let it
> override /etc/default/locale, wouldn't sending LANGUAGE="" work?

Only if LANGUAGE is set. But what about systems not based on glibc?
They could have a LANGUAGE environment variable with a different
meaning and setting LANGUAGE="" may have a bad effect.

I wish software used some form of namespace, e.g. GLIBC_LANGUAGE.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Reply to: