[Top][All Lists]

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

diffutils bug (diff exe): ignore-file-name-case option

From: Martin Schmidt-Linden
Subject: diffutils bug (diff exe): ignore-file-name-case option
Date: Mon, 20 Jun 2005 13:34:41 +0200 (MEST)

Hello GNU team,

the diff program from diffutils doesn't operate the "ignore-file-name-case"
option correctly. I used diffutils 2.8.1 source from gnu.org to verify this.

The problem is in dir.c, in the function:
static int compare_names (char const *name1, char const *name2)
which at first checks for ignore-file-name-case, but then checks for
locale-sensitive name compare (locale_specific_sorting) and doesn't ignore
the filename case anymore.

The return value uses:
return file_name_cmp (name1, name2);
which equals to strcmp and also doesn't ignore the filename case.

I am sorry that I can't provide a patch, but I haven't read deep into the
locale thing.


Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

reply via email to

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