Current-Users archive

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

Re: calling setlocale (Re: Build break - commaizenumber)



On Tue, Mar 15, 2011 at 08:11:27PM -0500, Eric Haszlakiewicz wrote:
> I guess I'm a bit confused at to what that means.  The man page says that
> "denotes native environment", but it doens't explain how that's different
> from the "C" locale, which it says is the standard locale for c programs.
> Or, does that mean that calling setlocale with "" causes it to look up the
> actual environment variables and set the locale based on that?  (which doesn't
> sound exactly like the "native" environment, it's the settings that the
> current user overrode the defaults with.)

The "C" locale is the compatibility default. The native environment is
what the user requested via environment variables. setlocale with "" as
value is used to set the native locale, yes.

Joerg


Home | Main Index | Thread Index | Old Index