GNU bug report logs -
#23833
24.5; assoc-string with CASE-FOLD may fail
Previous Next
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 #16 received at 23833 <at> debbugs.gnu.org (full text, mbox):
On Thu, Jun 23, 2016 at 11:11 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> 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.
Would it not make more sense if upcase converted dz into DZ? According
to https://en.wikipedia.org/wiki/Dz_(digraph)#Unicode Dz is the "title
case" form, not upper case form. Or is this something that depends on
locale?
This bug report was last modified 8 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.