This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: base-files 4.0-9: LANG is set to the system default, why not the user selection?


On Wed, Feb 15, 2012 at 02:11:14PM +0000, Andy Koppe wrote:
> On 15 February 2012 13:59, Peter Rosin wrote:
> > My Windows is Swedish, but I generally like it to show as little as
> > possible in Swedish so my "display language" is English. ?I want
> > English, to not suffer from strange translations that don't make
> > sense, to be able to search for error messages, etc.
> >
> > A recent change seems to have LANG set to the output of the system
> > default language, but I think that's just wrong, it should be the
> > language of the current user.
> >
> > Please change lang.{c}sh to do "locale -uU" instead of "locale -sU".
> > Where is the recommended position to override LANG until such a
> > change is made, or if it is not an agreeable change?

The files under /etc/profile.d are sourced by /etc/profile, which sets
system wide settings.
For user-defined values, the place to override a system-wide setting
depends on the shell you're using. E.g., for bash, it would be
~/.bash_profile. Check /etc/skel/.bash_profile. It should include
these lines:

# Set user-defined locale
export LANG=$(locale -uU)

Probably you have a customized ~/.bash_profile, so updating to
base-files-4.0-9 didn't replace it.

-- 
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]