zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk, 317773@bugs.debian.org
Subject: Re: LC_ALL=C foo, where foo is a shell function
Date: Tue, 29 Jan 2008 16:23:19 -0500	[thread overview]
Message-ID: <20080129211024.GA10323@scowler.net> (raw)
In-Reply-To: <070414131831.ZM13722@torch.brasslantern.com>

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


           reply	other threads:[~2008-01-29 21:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <070414131831.ZM13722@torch.brasslantern.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080129211024.GA10323@scowler.net \
    --to=clint@zsh.org \
    --cc=317773@bugs.debian.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).