coding neutral regexec to do UTF-8 ranges

Joël Krähemann jkraehemann@gmail.com
Sun Jun 25 05:01:00 GMT 2017


Hi

That's true. Thank you very much.

Joël


On Sat, Jun 24, 2017 at 8:51 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Joël Krähemann:
>
>> You just ignored the main issue. Getting gettext to work.
>>
>> I assume uselocale() does almost the same as putenv() passing
>> the environment variable. This is what I actually do.
>
> It's subtly different: uselocale only affects the current thread.
>
>> putenv("LANG=C");
>> putenv("LC_ALL=C");
>>
>> However gettext requires UTF-8 locales, afaik. I need a solution that
>> works for every thread that might call ags_turtle.c related functions.
>
> You need to set and restore the thread locale around the regular
> expression function calls (for both compilation and execution).



More information about the Libc-help mailing list