From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8769 invoked by alias); 7 Apr 2007 17:52:39 -0000 Received: (qmail 8759 invoked by uid 22791); 7 Apr 2007 17:52:38 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 07 Apr 2007 18:52:37 +0100 Received: from HOME-C4E4A596F7 (IGLD-80-230-144-73.inter.net.il [80.230.144.73]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CHD76183 (AUTH halo1); Sat, 7 Apr 2007 20:52:26 +0300 (IDT) Date: Sat, 07 Apr 2007 17:52:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: brobecker@adacore.com, gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org In-reply-to: <20070407173500.GC24650@caradoc.them.org> (message from Daniel Jacobowitz on Sat, 7 Apr 2007 13:35:00 -0400) Subject: Re: [RFA/libiberty] Fix documentation issues in filename_cmp.c Reply-to: Eli Zaretskii References: <20070405172720.GB9281@adacore.com> <20070406061218.GB3471@adacore.com> <20070407173500.GC24650@caradoc.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00049.txt.bz2 > Date: Sat, 7 Apr 2007 13:35:00 -0400 > From: Daniel Jacobowitz > Cc: Joel Brobecker , 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.