How LANG environment variable is set?

Angelo Graziosi angelo.graziosi@alice.it
Thu Apr 24 21:13:00 GMT 2014


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 LANG=$(/usr/bin/locale 
-uU)

and at command line, '/usr/bin/locale -uU' prints it_IT.UTF-8...


If I start mintty (LANG empty) and the copy/paste the above lang.sh 
line, after an <ENTER> I get

$ echo $LANG
it_IT.UTF-8

It is as if the script was not executed... or not? but surely I am 
missing something..


Ciao,
  Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list