Locale support

Natanael copa natanael.copa at gmail.com
Tue Aug 7 22:33:19 UTC 2007


On Tue, 2007-08-07 at 16:27 -0500, Rob Landley wrote:
> On Wednesday 01 August 2007 12:14:04 am Ned Ludd wrote:
> > Locales are an incomplete WIP that will probably never be finished.. For
> > now it's best to simply forget about them..
> 
> Is there a locale spec anywhere?
> 
> I really don't know what locales _do_.  They're not something I normally use.


"In computing, locale is a set of parameters that defines the user's
language, country and any special variant preferences that the user
wants to see in their user interface. Usually a locale identifier
consists of at least a language identifier and a region identifier."

http://en.wikipedia.org/wiki/Locale

For example, what date is 07/08/06? It depends on your locale. In USA it
means July 8, 2006. In most European countries it means 7. Aug 2006 and
in Japan it means 2007 Aug 6.

The locale defines what strftime(buf, sizeof(buf), "%x", tm) will put
into buf. See strftime(3).

> (I vaguely understand unicode but have no idea how locale support would work 
> into it.  There's date and time, currency translation, commas and decimal 
> places in numbers, time zones, and all sorts of other weird stuff...)

Unicode is a character set. Not a locale.

http://en.wikipedia.org/wiki/Unicode

> 
> Rob




More information about the uClibc mailing list