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

David Sastre Medina d.sastre.medina@gmail.com
Wed Feb 15 22:15:00 GMT 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120215/4209d42b/attachment.sig>


More information about the Cygwin mailing list