This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How LANG environment variable is set?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 24 Apr 2014 17:24:17 -0400
- Subject: Re: How LANG environment variable is set?
- Authentication-results: sourceware.org; auth=none
- References: <53597E6B dot 1080207 at alice dot it>
- Reply-to: cygwin at cygwin dot com
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 "${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..
WJFFM. What's the shell you're running? Are you setting the local and/or
character set in mintty itself? Is '/etc/profile' or any of the other
profile scripts being run? Perhaps cygcheck output would help if you can't
find out where things are going awry.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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