On Wed, Sep 10, 2003 at 02:07:03 +0100, Colin Watson wrote:
> On Tue, Sep 09, 2003 at 11:07:38PM +0200, Daniel Bonniot wrote:
> > Colin Watson wrote:
> > >Try 'LC_CTYPE=fr_FR.ISO-8859-1' instead. You need the language and
> > >country parts there.
> > 
> > That works. However I wonder: why do I need to specifiy a language and 
> > country? ISO-8859-1 is ISO-8859-1, independently of any specific 
> > country, after all.
> 
> The LC_CTYPE variable sets the character classification and case
> conversion rules. Picking an encoding is just one part of this: things
> like case conversion rules vary considerably between languages and
> probably even variants of languages, and there isn't a reasonable way
> for the C library to guess which one you meant.

But case conversion rules should apply to the language of the
corresponding text, which isn't necessarily the same as the
language chosen by the user (with LC_CTYPE).

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to