delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/24/17:58:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding
:reply-to; q=dns; s=default; b=P3IzAy7YQ3ZWN0fNYYtKB2Hxp4FnL7ETD
E6cJHh80mC4IpX0ok1TkjMmEXqoX7Y4RC36PbcbN5UjiNlhfBZ0n4m4QsKAqlpya
d6JfkYQn+6kZv2KIYr9JIcUT5Dq5IIGC8Tresc0LGpQ0jV4oFkYY4J/YtkDgFhOX
zpNwtmYGmE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding
:reply-to; s=default; bh=9DNGxbQrMtpry9ISmVQjfYB2ZWE=; b=hGvPI6k
l1/JcI1ufxqFLv8aj5+EXDZaIfQjOPppOyBNOrtu6Acf+Xgb61nTNwajPmHt1u8Z
62eb9+MKjA3Tc2ialjGOmfDkhSAYLbxUIIEzIbWpoDsQOnNK6Fm7Tx16fJo/Sghb
FqaQHox9G+bdwgGtecOjH+z4B4zytOtYewfA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: qmta01.emeryville.ca.mail.comcast.net
Message-ID: <53598885.5060708@acm.org>
Date: Thu, 24 Apr 2014 14:56:21 -0700
From: David Rothenberger <daveroth AT acm DOT org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How LANG environment variable is set?
References: <53597E6B DOT 1080207 AT alice DOT it>
In-Reply-To: <53597E6B.1080207@alice.it>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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...

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.

-- 
David Rothenberger  ----  daveroth AT acm DOT org

"It's what you learn after you know it all that counts."
                -- John Wooden

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019