zsh-workers
 help / color / mirror / code / Atom feed
* Re: LC_ALL=C foo, where foo is a shell function
       [not found] <070414131831.ZM13722@torch.brasslantern.com>
@ 2008-01-29 21:23 ` Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-01-29 21:23 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers, 317773

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-29 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <070414131831.ZM13722@torch.brasslantern.com>
2008-01-29 21:23 ` LC_ALL=C foo, where foo is a shell function Clint Adams

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