Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Restore `LC_ALL' when setting `LANG'
- X-seq: zsh-workers 30083
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: Restore `LC_ALL' when setting `LANG'
- Date: Wed, 4 Jan 2012 17:30:17 +0000
- Cc: 654225@xxxxxxxxxxxxxxx
- In-reply-to: <20120104021641.GD4513@xvii.vinc17.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20120102132718.GA12143@gatsby.mbjnet.dk> <87fwfyb2if.fsf@ft.bewatermyfriend.org> <20120102154714.GA20663@gatsby.mbjnet.dk> <87wr9a9ely.fsf@ft.bewatermyfriend.org> <20120103111049.GA5673@gatsby.mbjnet.dk> <87sjjw98yl.fsf@ft.bewatermyfriend.org> <87k458974e.fsf@ft.bewatermyfriend.org> <2012-01-03T15-59-18@devnull.michael-prokop.at> <87boqk95we.fsf@ft.bewatermyfriend.org> <87y5to7qob.fsf@ft.bewatermyfriend.org> <20120104021641.GD4513@xvii.vinc17.org>
On 2012-01-03 16:26:44 +0100, Frank Terbeck wrote:
> I think the patch below fixes the issue correctly, by restoring LC_ALL
> from its parameter along the way with all the other LC_* values zsh
> cares about.
Looks plausible, without following through all the implications.
On Wed, 4 Jan 2012 03:16:41 +0100
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> I don't understand why zsh has anything to do with environment
> variables to detect the charset (if I understood correctly).
> Why not using nl_langinfo(CODESET)?
Intercepting the setting of environment variables is mostly to ensure
setlocale() gets run when necessary.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author