This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/libiberty] Fix documentation issues in filename_cmp.c
> Date: Sat, 7 Apr 2007 13:35:00 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Joel Brobecker <brobecker@adacore.com>, gcc-patches@gcc.gnu.org,
> gdb-patches@sourceware.org
>
> In the POSIX locale, strcasecmp() and strncasecmp() shall behave as if
> the strings had been converted to lowercase and then a byte comparison
> performed. The results are unspecified in other locales.
That's what I suspected.
> 2. Glibc's strcasecmp uses tolower and honors LC_COLLATE.
But the version in libiberty only handles ASCII.
> Which behavior do we want here, anyway? I'm not sure...
I think we should fold only ASCII characters, since it's consistent
with libiberty's strcasecmp.