Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Restore `LC_ALL' when setting `LANG'



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