On Thu, 30 Aug 2001 [EMAIL PROTECTED] wrote:
> >BTW, why exactly do you do those tests? Maybe if you ask what you
> actually
> >want to know somebody could answer you.
>
> Thank you all for the replies. My actual question is about my hpux box,
> and this is
> linux mail-list, I'm actually testing if my hpux box has all locales set
> up correctly.
> Currently "locale -a" only shows two utf8 locales:
> %locale -a |grep utf
> C.utf8
> univ.utf8
>
> but I found 8 UTF-8 locales in /usr/lib/nls/loc/locales:
> C.utf8* es_ES.utf8* fr_FR.utf8* sv_SE.utf8*
> de_DE.utf8* fr_CA.utf8* it_IT.utf8* univ.utf8*
>
> My questions:
> 1. does it mean that those locales are not properly installed/configured,
> and if not, how can I set them up ?
$ man localedef
$ man locale
should answer your question.
> do I need root privilege ?
I'm afraid you need root previlge. $LOCPATH environment
variable doesn't seem to have any effect when set by non-root
user.
> 2. Is C.utf8 same as en_US.utf8 ?
Without actually testing it, I can't answer whether they're
identical or not on HP/UX box. In Linux+Glibc,
I believe they're different. The former is 'kind of' locale-neutral.
For instance, date format in C.utf8 is yyyy-mm-dd while in en_US.utf8
it's 'Mmm dd yyyy' (I'm being lazy here not using strftime format
specifier).
> 3. once a locale, say de_DE.utf8, is set up, does it mean the German
> collation
> rules are also all set ? or I still need to set the collation rule
> separately ?
It's supposed to include the culturally/orthographically correct
LC_COLLATE, but it depends on how faithfully the locale in question
is implemented.
Jungshik Shin
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/