tech-userlevel archive

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

Re: Per thread locales



On Wed, Dec 30, 2015 at 04:24:00PM +0100, Martin Husemann wrote:
> On Tue, Dec 29, 2015 at 09:39:52PM +0100, Joerg Sonnenberger wrote:
> > If anything, it is a result of the implementation choices made years
> > ago. uselocale() fundamentally can't be retrofitted into the way common
> > implementations e.g. of the ctype macros work.
> 
> Why is that?

The bit masks of the global locale are global arrays. There is no way to
make that per-thread without breaking the ABI or creating horrible
compatibility situations (e.g. you are calling an older shared library
and suddenly get inconsistent results).

Joerg


Home | Main Index | Thread Index | Old Index