tech-userlevel archive

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

Re: CVS commit: src/lib/libc/locale

On Tue, Apr 16, 2013 at 04:55:01AM +0000, YAMAMOTO Takashi wrote:
> hi,
> > On Mon, Apr 15, 2013 at 11:40:57PM +0900, Takehiko NOZAKI wrote:
> >> POSIX2008 spec say, *_l func with invalid locale handle may EINVAL.
> >> NULL or (locale_t)0 is invalid locale handle.
> >> why are you think fallback to C locale?
> > 
> > That's what Apple and FreeBSD provide and which is actually quite
> > useful. Wanting access to the C locale is the most common case for many
> > locale issues. Making that easy sounds like a good idea in general.
> is there consumers of this "extension" in the field?


> an application can have a global c_locale = newlocale("C")
> if it wants an easy access to the C locale.

...which means keeping a copy around in various libraries etc.
It is possible, but wastes memory.


Home | Main Index | Thread Index | Old Index