coding neutral regexec to do UTF-8 ranges

Florian Weimer fw@deneb.enyo.de
Sat Jun 24 18:51:00 GMT 2017


* 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