GNU bug report logs - #23833
24.5; assoc-string with CASE-FOLD may fail

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Thu, 23 Jun 2016 12:02:02 UTC

Severity: normal

Found in version 24.5

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 23833-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: ynyaaa <at> gmail.com, 23833-done <at> debbugs.gnu.org
Subject: Re: bug#23833: 24.5; assoc-string with CASE-FOLD may fail
Date: Thu, 23 Jun 2016 18:11:34 +0300
> From: Noam Postavsky <npostavs <at> users.sourceforge.net>
> Date: Thu, 23 Jun 2016 08:26:22 -0400
> Cc: 23833 <at> debbugs.gnu.org
> 
> assoc-string uses compare-strings, which uses upcase to ignore case,
> but upcase is not always the inverse of downcase:
> 
> (upcase (downcase "DZ")) ;=> "Dz"
> ;; Or to put it another way
> (= (upcase (downcase ?\u01F1)) ?\u01F2) ;=> t
> 
> Same behaviour seen in emacs-25 and master

Thanks.

This is a documentation issue: both 'assoc-string' and
'compare-strings' had inaccuracies in their doc strings.  I fixed this
on the emacs-25 branch, and I'm marking this bug done.




This bug report was last modified 8 years and 356 days ago.

Previous Next


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