Re: locale problem
From: Sven Mascheck (cuso.l.mascheck_at_spamgourmet.com)
Date: 05/27/05
- Next message: Mike: "rockridge extension"
- Previous message: Mats Larsson: "Re: SUNWmozilla and SUNWmoznav security bugs"
- In reply to: Laurent Blume: "Re: locale problem"
- Next in thread: Laurent Blume: "Re: locale problem"
- Reply: Laurent Blume: "Re: locale problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 May 2005 10:53:49 +0200 (CEST)
Laurent Blume wrote:
> LC_MESSAGES fr_FR.UTF-8, everything else C:
> first messages in English, last in French:
> LC_MESSAGES and LC_CTYPE in fr_FR.UTF-8, everything else in C,
> messages all in French
Possible reason: To properly use 8bit messages (LC_MESSAGES),
you should allow it to print 8bit characters (LC_CTYPE), too?
> LANG appears to be irrelevant here.
If LANG is set, it controls those categories which haven't been set
explicitly (useful for localizing a complete user environment,
hence the name). You only should set other categories by very
intention then: For example if you want to avoid "unexpected"
sort orders, additionally set LC_COLLATE=C.
However, you have explicitly set all variables, not just LANG.
> $ locale
> LANG=C
> LC_CTYPE=C
> LC_NUMERIC=C
> LC_TIME=C
> LC_COLLATE=C
> LC_MONETARY=C
> LC_MESSAGES=C
> LC_ALL=
because locale(1) indicates indirect influence by using doublequotes:
$ LANG=fr_CA.ISO8859-1 LC_COLLATE=C locale
LANG=fr_CA.ISO8859-1
LC_CTYPE="fr_CA.ISO8859-1"
LC_NUMERIC="fr_CA.ISO8859-1"
LC_TIME="fr_CA.ISO8859-1"
LC_COLLATE=C
LC_MONETARY="fr_CA.ISO8859-1"
LC_MESSAGES="fr_CA.ISO8859-1"
LC_ALL=
> But you'd probably be better just setting LC_ALL and LANG.
LC_ALL is only useful for debugging or quick workarounds,
it's overriding all other variables.
- Next message: Mike: "rockridge extension"
- Previous message: Mats Larsson: "Re: SUNWmozilla and SUNWmoznav security bugs"
- In reply to: Laurent Blume: "Re: locale problem"
- Next in thread: Laurent Blume: "Re: locale problem"
- Reply: Laurent Blume: "Re: locale problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|