Kaixo!

On Fri, Jun 01, 2001 at 09:25:42PM +0200, Bram Moolenaar wrote:
 
> > > > Therefore in glibc setlocale() is case sensitive on the language_territory
> > > Hmm, I'm disappointed.  So why is it case sensitive?  Don't say it's
 
> > I think the problem is because the actual data is stored on disk.
> > That is, on filesystems that are case sensitive, the locale name is
 
> Thus the solution would be to keep the locale directory on an MS-DOS
> filesystem...?
> 
> There are various ways to ignore case when looking up a file.  The glob()
> function should be able to do it.  OK, it's a bit of work, but that is not a
> good reason to let all the users handle the problem, instead of implementing
> the solution once.

In fact, according to my experience, there is no real case sensitivness
problem, for a locale ll_CC.xxxxx the ll and CC parts are well defined (well,
I don't know if there is any standard defining it, but I didn't saw deviant
namings at least): ll is lowercase, CC is uppercase.
The problem is xxxxx, the charset name. And there there is more than
just the case problem, there is also and over all a total lack of any 
convention, you can see, for iso-8859-1 alone, any of (and not limited to):
iso-8859-1, ISO-8859-1, iso_8859_1, ISO8859-1, iso8859-1, iso88591, iso8859_1,
8859-1 (yes!), ISO_8859-1, and others.
If it were case insensitive it would simply reduce from 9 to 7 the possible
aliases in the small example above; the problem would remain: the naming
of locales is not standardized, it is extremly system dependent.

The case sensitivness is not a real problem, the lack of standardization is.

Note how C language is case sensitive too; however, the casing of standard 
functions is fixed; that solves the problem.
If the possible values for a locale using iso-8859-1 for French language
in France would be reduced to one and only one standardized string, then
there wouldn't be a problem either.

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.srtxg.easynet.be/            PGP Key available, key ID: 0x8F0E4975
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to