This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How LANG environment variable is set?
- From: Angelo Graziosi <angelo dot graziosi at alice dot it>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Apr 2014 23:13:15 +0200
- Subject: How LANG environment variable is set?
- Authentication-results: sourceware.org; auth=none
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