[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: |
Eli Zaretskii |
Subject: |
Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes |
Date: |
Fri, 13 Mar 2015 08:14:14 +0200 |
> Date: Thu, 12 Mar 2015 22:55:42 -0400
> From: "Andrew J. Schorr" <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, address@hidden
>
> 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
> function
>
> 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...
I actually think that #2 should also work, FWIW.
- [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Hermann Peifer, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Eli Zaretskii, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Hermann Peifer, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Eli Zaretskii, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Hermann Peifer, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Andrew J. Schorr, 2015/03/12
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes,
Eli Zaretskii <=
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, arnold, 2015/03/13
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Eli Zaretskii, 2015/03/13
- Re: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes, Hermann Peifer, 2015/03/13