Pablo Saratxaga wrote:
> On Fri, Jun 01, 2001 at 07:53:54PM +0200, Bram Moolenaar wrote:
>
> > > The standards don't specify that setlocale() would be case INsensitive.
> > > Therefore in glibc setlocale() is case sensitive on the language_territory
> > > part.
> >
> > Hmm, I'm disappointed. So why is it case sensitive? Don't say it's
> > because of some standard. I would like to know the real reason.
> >
> > Would there be two locale names that differ only by case? If not, then
> > why not make it case insensitive? Wouldn't hurt anybody and makes life
> > easier.
>
> 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
> case sensitive (unless you try all the possible case combinations when
> reading directory names; which would be a bit wastefull).
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.
--
hundred-and-one symptoms of being an internet addict:
80. At parties, you introduce your spouse as your "service provider."
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.moolenaar.net \\\
((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/