* 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