delorie.com/archives/browse.cgi | search |
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:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=IYcc1fv10ZW8xnPj | |
mYdPGMk4K+onbOhcV9j5HQnkn8fkgLPRU9Ab/cf5oGxMKDyM6UFvgPOJxWac//oL | |
QMlNNsklgvXvZjB3k0E1feHOdMmw049mTP/pTgjnbSyWMjo3yySvNE8T55vaIH4/ | |
mC0nO8euc26JRiHnQ3Nj+awudoo= | |
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:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=hsKs/SgQKScp3Qf331AaXf | |
Mzcus=; b=eTE67yOCkwow91nQZdD5LGAhhOPs4zgHlOukSL6gTmmbx65oBb+9Qf | |
chHp3eJi7t8AiIhGd9co5vxuP2OW2+SprWQhCQFa2pNCTQH7CUgofzW5KO1GUCv3 | |
lGqNxr2UCg+YdEyg35QOQcxLRuSbTbty1UShKWHOEtANBol366Jn0= | |
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=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
X-HELO: | vms173017pub.verizon.net |
Message-id: | <53599112.9080405@cygwin.com> |
Date: | Thu, 24 Apr 2014 18:32:50 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; Linux i686; 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> <53598885 DOT 5060708 AT acm DOT org> |
In-reply-to: | <53598885.5060708@acm.org> |
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 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. > 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. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |