tech-userlevel archive

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

Re: LC_COLLATE and setlocale(3)



On Mon, Aug 22, 2011 at 6:57 AM, Joerg Sonnenberger
<joerg%britannica.bec.de@localhost> wrote:
> On Sun, Aug 21, 2011 at 09:31:13PM -0400, matthew sporleder wrote:
>> Does NetBSD support LC_COLLATE at all with setlocale?  This is the
>> cause of our perl warnings* and I noticed that we have no LC_COLLATE
>> files in /usr/share/locale.
>>
>> *https://rt.perl.org/rt3/Public/Bug/Display.html?id=96240
>
> No.
>

How do we add this, or at least stub it out?  Is this a limitation in
our locale sources, or in mklocale?
(LC_COLLATE is even given as an example in the netbsd man page)

It appears that at least the following should work:
http://pubs.opengroup.org/onlinepubs/7908799/xsh/setlocale.html

LC_COLLATE
Affects the behaviour of regular expressions and the collation functions.
LC_CTYPE
Affects the behaviour of regular expressions, character
classification, character conversion functions and wide-character
functions.
LC_MESSAGES
Affects what strings are expected by commands and utilities as
affirmative or negative responses, what strings are given by commands
and utilities as affirmative or negative responses, and the content of
messages.
LC_MONETARY
Affects the behaviour of functions that handle monetary values.
LC_NUMERIC
Affects the radix character for the formatted input/output functions
and the string conversion functions.
LC_TIME
Affects the behaviour of the time conversion functions.


Home | Main Index | Thread Index | Old Index