Re: locale problem

From: Sven Mascheck (cuso.l.mascheck_at_spamgourmet.com)
Date: 05/27/05


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.



Relevant Pages

  • Re: Landiss Alcohol Defense
    ... You are no gentleman. ... Remembering you offensive message "The French process is the buffonery ... Nor is the justice and it is not a reason for to end with justice, ...
    (rec.bicycles.racing)
  • Re: [OT] The french
    ... Why do Americans hate the French? ... >> Reason #2 The French were knee deep in shit until we bailed them ... "Classified documents seen by the Sunday Herald show that Britain sold Iraq ...
    (alt.smokers.cigars)
  • Re: New SonyBMG Masterworks Website (throwing myself on the sword)
    ... Jeremy Meyers writes: ... At least I see no reason not to be pleasant to the guy and give him a ... to buy "EMI Special Import" CDs of UK or French manufacture, titles Angel ...
    (rec.music.classical.recordings)
  • Re: al Dura - The truth is out, will someone cover it? (Naomi Ragen)
    ... you to be the voice of reason, the voice of rationality, but you're ... Frenchmen around, but while I'll agree the national voice of the French does ... for another dealer because he wasn't selling enough bicycles. ...
    (soc.culture.jewish.moderated)
  • Re: [OT] The french
    ... Why do Americans hate the French? ... Reason #1 France was the ONLY country to applaud the Nazi's when they ... dirty weak French men. ...
    (alt.smokers.cigars)