bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: win32 diff (GNU diffutils) 2.8.1 "--ignore-file-name-case" switch do


From: Eli Zaretskii
Subject: Re: win32 diff (GNU diffutils) 2.8.1 "--ignore-file-name-case" switch doesn't work
Date: Sun, 11 Jan 2004 19:54:27 +0200

> From: Paul Eggert <address@hidden>
> Date: 10 Jan 2004 23:18:44 -0800
> 
> What is actually needed is a "strcasecoll" routine, which compares
> file names in a case-insensitive way in arbitrary locales.

Right, but as long as such a beast isn't available, isn't it more
correct to return zero if strcasecmp finds the names equal?  What
situation do you envision where two strings that are equal for
strcasecmp are not equal in a non-Posix locale?

> For a similar case I've been thinking of using the patch described in
> <http://mail.gnu.org/archive/html/bug-gnu-utils/2002-12/msg00079.html>.
> However, given your discussion it seems that this patch isn't correct
> either....

Hmm.. why not?

As the last resort, how about supporting case-insensitive file-name
comparisons only in the C locale?  For that matter, why not using
strcasecmp alone when we run under the C locale?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]