tech-userlevel archive

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

Re: Per thread locales



On Tue, Dec 29, 2015 at 10:01:03PM +0100, Martin Husemann wrote:
> On Tue, Dec 29, 2015 at 09:43:48PM +0100, Joerg Sonnenberger wrote:
> > If it is using strtod or printf, use the _l version with LC_C_LOCALE for
> > locale_t. It is annoying to audit because approach taken by Skia
> > complete decouples getting the locale from using the locale...
> 
> But from upstream's point of view: uselocale() is well defined and Posix,
> while the _l versions of *print*/*scan* are not. So this will be tough
> to push.

Incomplete support for _l versions is a POSIX bug, nothing else. All
locale sensitive functions should have a version with explicit locale
argument, it's likely that noone ever got around to demand that.

That said, this should still be pretty well contained if there is any
abstraction for the print/scan logic used.

Joerg


Home | Main Index | Thread Index | Old Index