> Nala Ginrut <nalaginrut@...> writes:
>> I know it's not the best implementation, I didn't consider the
>> multi-threads situation.
> Yes, unfortunately there is no way to set the locale on a per-thread
> basis. This is a limitation of the C library.
There’s uselocale(3) in POSIX 2008, implemented in GNU and Darwin.