[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-by

From: Andrew J. Schorr
Subject: Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes
Date: Thu, 12 Mar 2015 22:55:42 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Mar 12, 2015 at 09:47:17PM +0100, Hermann Peifer wrote:
> On 2015-03-12 21:32, Eli Zaretskii wrote:
> >
> >By contrast, in your example the variable is set after Gawk already
> >started, so nothing guarantees 'setlocale' will be called.
> >
> Thanks for your explanations. I see that my expectations were wrong.

Note that there are a couple of ways to achieve your desired behavior:

1. Create a shared library extension to provide access to the setlocale

2. One could imagine patching str_array.c:env_{clear,remove,store} to trigger a
call to setlocale when the LC_* values are changed.

I suspect that #1 is the better approach...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]