Mail Archives: djgpp-workers/2005/01/19/17:52:12
On Wed, 19 Jan 2005 21:12:00 +0200, Eli Zaretskii <eliz AT gnu DOT org>
wrote:
>> From: <ams AT ludd DOT ltu DOT se>
>> Date: Wed, 19 Jan 2005 19:25:53 +0100 (CET)
>>
>> > Due to limitations of the @file{country.sys} driver only
>> > the current user locale @code{""} or its name in the POSIX form
>> > @code{"@var{ll}_ AT var{CC}"}@footnote{
>> > The POSIX locale code @code{"@var{ll}_ AT var{CC}"} consists of the ISO
>> > two letter language code @var{ll} and the ISO two letter
>> > country/territory code @var{CC}, optionally followed by the suffix
>> > @code{_EURO}, if the country has adopted the Euro as its currency
>> > unit; for example, @code{"de_AT"} for the German-speaking Austrian
>> > locale, or @code{"fr_BE_EURO"} for the French-speaking Belgian locale
>> > using the Euro.
>> > }, and @code{"C"} (aka @code{"POSIX"}) locales are supported.
>>
>> This is a really good explanantion about the format of those
>> variables. I propose to add this to setlocal.txh too
>
>We could simply have an @xref in wc204.txi that points to
>setlocal.txh.
>
>> Why putting the description of how @code{"@var{ll}_ AT var{CC}"}
>> is built in a footnote? I think it should be in the text with all the
>> rest.
>
>Making this part of text is a good idea. We should also add a
>suitable @cindex entry to it, while at that, since otherwise users
>will not easily find it in the docs.
Added some more info from reading the Standard and the code.
Please see separate postings with subject: strxfrm.
Not sure how much of this should be moved into setlocal.txh, will
leave that to your good judgement, Eli and Martin.
@findex setlocale AT r{, standard and current locales supported}
The function @code{setlocale} now supports the following categories
and environment variables: @code{LC_CTYPE}, @code{LC_COLLATE},
@code{LC_NUMERIC}, @code{LC_MONETARY}, @code{LC_TIME}, as well as
@code{LC_ALL} and also the environment variable @env{LANG}, which
provide defaults for all categories not explicitly set to a locale.
POSIX @code{LC_MESSAGES} are not supported.
Due to limitations of the @file{country.sys} driver only
the current user locale @code{""} or its name in the POSIX-like form
@code{"@var{LL}_ AT var{TT}@var{eu}.@var{CP}"}, and @code{"C"} (aka
@code{"POSIX"}) locales are supported.
@cindex locale code format
The POSIX-like locale code @code{"@var{LL}_ AT var{TT}@var{eu}.@var{CS}"}
consists of the ISO two letter lowercase language code @var{LL}, the
ISO two letter uppercase territory code @var{TT}, optionally followed
by the suffix @code{_EURO} @var{euro} if the country has adopted the
Euro as its currency unit, and the character set @var{CS} specified by
a code page number between 1 and 65534;
for example, @samp{"de_AT.850"} for the German-speaking Austrian
locale, or @samp{"fr_BE_EURO.850"} for the French-speaking Belgian
locale using the Euro, both using Western multilingual ``Latin-1''
code page number 850.
Modifies the character classes used by functions defined in headers
@file{ctype.h} and @file{regex.h}, returns appropriate values from
@code{strcoll}, @code{strxfrm}, and @code{localeconv} functions,
changes the decimal character used by @code{*scanf}, @code{strto[l]d},
and @code{*printf} functions for converting numeric strings for
input/output, and function @code{strftime} uses the appropriate
formats for @code{"%r"}, @code{"%x"}, @code{"%X"}, and @code{"%c"}
conversions.
--
Thanks. Take care, Brian Inglis
- Raw text -