This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: `newlocale ()' clarifications


> Agreed.  Are you in a position to influence the spec?

We are.  And anyone can submit requests for clarification or
recommendations for changes.

> > I think you can use newlocale (LC_ALL_MASK, setlocale (LC_ALL, NULL), NULL).
> > I don't see why that wouldn't work, and portably.
> 
> Right, although it is IMO less elegant than using `LC_GLOBAL_LOCALE' and
> actually requires two `newlocale ()' calls (one to get a `locale_t' for
> the current locale and a second one to use it as BASE).

But no more real work.  Moreover, it works now while allowing
LC_GLOBAL_LOCALE would not be portable for applications to use even if
glibc were to change.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]