From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 827 invoked from network); 29 Jan 2008 21:23:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FAKE_REPLY_C autolearn=no version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Jan 2008 21:23:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 4900 invoked from network); 29 Jan 2008 21:23:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jan 2008 21:23:29 -0000 Received: (qmail 6338 invoked by alias); 29 Jan 2008 21:23:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24488 Received: (qmail 6313 invoked from network); 29 Jan 2008 21:23:22 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Jan 2008 21:23:22 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id F2A058028C6A for ; Tue, 29 Jan 2008 22:23:19 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 0FB8B5C197; Tue, 29 Jan 2008 16:23:18 -0500 (EST) Date: Tue, 29 Jan 2008 16:23:19 -0500 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk, 317773@bugs.debian.org Subject: Re: LC_ALL=C foo, where foo is a shell function Message-ID: <20080129211024.GA10323@scowler.net> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk, 317773@bugs.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <070414131831.ZM13722@torch.brasslantern.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/5599/Tue Jan 29 17:27:10 2008 on bifrost X-Virus-Status: Clean [moved to -workers] On Sat, Apr 14, 2007 at 01:18:31PM -0700, Bart Schaefer wrote: > I'm not able to reproduce it with the latest CVS on my RHEL4 machine, or > at least I can't do so with the most straightforward interpretation of > "LC_ALL starts out set". > > If it is happening, it has to be related to this (params.c): > > void > lc_allsetfn(Param pm, char *x) > { > strsetfn(pm, x); > if (!x) { > queue_signals(); > setlang(getsparam("LANG")); > unqueue_signals(); > } > else > setlocale(LC_ALL, x); > } I just tried and succeeded in reproducing the problem again. So the issue is that setlocale() is exporting LC_ALL, but at no point is the shell aware of this?