Re: How LANG environment variable is set?

2014-04-25 Thread Achim Gratz
Larry Hall (Cygwin reply-to-list-only-lh at cygwin.com writes: Good catch. Yes, the latest version of base_files makes this change to the profile_d() function. Looks like the easiest interim solution is to downgrade to base_files-4.1-2. The easiest interim solution is probably to unset

Re: How LANG environment variable is set?

2014-04-25 Thread Andrey Repin
Greetings, Larry Hall (Cygwin)! It looks like /etc/profile sets LC_ALL=C before running the scripts in /etc/profile.d, then restores it to its original setting. This prevents LANG getting set by lang.sh. Good catch. Yes, the latest version of base_files makes this change to the

How LANG environment variable is set?

2014-04-24 Thread Angelo Graziosi
I remember that some time ago I had, in mintty, $ echo $LANG it_IT.UTF-8 Now LANG is empty ('echo $LANG' prints nothing). I notice that /etc/profile.d has lang.sh which should set LANG when I start mintty. That script contains test -z ${LC_ALL:-${LC_CTYPE:-$LANG}} export

Re: How LANG environment variable is set?

2014-04-24 Thread Larry Hall (Cygwin)
On 04/24/2014 05:13 PM, Angelo Graziosi wrote: I remember that some time ago I had, in mintty, $ echo $LANG it_IT.UTF-8 Now LANG is empty ('echo $LANG' prints nothing). I notice that /etc/profile.d has lang.sh which should set LANG when I start mintty. That script contains test -z

Re: How LANG environment variable is set?

2014-04-24 Thread David Rothenberger
Angelo Graziosi wrote: I remember that some time ago I had, in mintty, $ echo $LANG it_IT.UTF-8 Now LANG is empty ('echo $LANG' prints nothing). I notice that /etc/profile.d has lang.sh which should set LANG when I start mintty. That script contains test -z

Re: How LANG environment variable is set?

2014-04-24 Thread Larry Hall (Cygwin)
On 04/24/2014 05:56 PM, David Rothenberger wrote: Angelo Graziosi wrote: I remember that some time ago I had, in mintty, $ echo $LANG it_IT.UTF-8 Now LANG is empty ('echo $LANG' prints nothing). I notice that /etc/profile.d has lang.sh which should set LANG when I start mintty. That script

Re: How LANG environment variable is set?

2014-04-24 Thread Angelo Graziosi
David Rothenberger wrote: It looks like /etc/profile sets LC_ALL=C before running the scripts in /etc/profile.d, then restores it to its original setting. This prevents LANG getting set by lang.sh. The statement LC_ALL=C has been introduced in /et/profile with the recent upgrade of base-file