GNU bug report logs - #11786
Use c_strcasecmp for portable ASCII case-insensitive comparison

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Tue, 26 Jun 2012 01:47:08 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 11786 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 11786 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu, dmantipov <at> yandex.ru
Subject: Re: bug#11786: Use c_strcasecmp for portable ASCII
	case-insensitive	comparison
Date: Tue, 26 Jun 2012 19:31:11 +0300
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> Cc: Paul Eggert <eggert <at> cs.ucla.edu>,  Dmitry Antipov <dmantipov <at> yandex.ru>,  11786 <at> debbugs.gnu.org
> Date: Tue, 26 Jun 2012 18:25:03 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Can tolower fail for these, somehow, in a locale that uses a multibyte
> > encoding for these strings, and if so, can you give a practical
> > example of such a failure?
> 
> tolower ('I') in a turkish locale.

OK, but that's not an issue with multibyte locales.

Anyway, I think having a custom replacement for tolower, perhaps using
the code of c_tolower from gnulib or its equivalent, will resolve
this.  Am I missing something?




This bug report was last modified 13 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.