GNU bug report logs -
#11309
24.1.50; Case problems with [:upper:] and Cyrillic, Greek
Previous Next
Reported by: Aidan Kehoe <kehoea <at> parhasard.net>
Date: Sun, 22 Apr 2012 10:13:02 UTC
Severity: normal
Tags: patch
Found in version 24.1.50
Done: Mattias Engdegård <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Aidan Kehoe <kehoea <at> parhasard.net> writes:
> (let ((case-fold-search t))
> (string-match "[[:upper:]]" "a\u0686"))
> => 0 ;; As documented
>
> (upcase "\u0430") ;; CYRILLIC SMALL LETTER A
> => "А" ;; "\u0410", so it's in the case table
>
> (let ((case-fold-search t))
> (string-match "[[:upper:]]" "\u0430\u0686"))
> => nil ;; Ah, this is unexpected.
I tried this in Emacs 28, and I can confirm that this behaviour is still
present.
> (let ((case-fold-search t))
> (string-match "[[:lower:]]" "\u0410\u0686"))
> => 0 ;; But this works as documented.
>
> (upcase "\u03b2") ;; GREEK SMALL LETTER BETA
> => "Β" ;; "\u0392", it's in the case table
>
> (let ((case-fold-search t))
> (string-match "[[:upper:]]" "\u03b2\u5357"))
> => nil ;; Oops
>
> (let ((case-fold-search t))
> (string-match "[[:lower:]]" "\u0392\u5357"))
> => 0 ;; But this works, again.
And this, too.
Anybody have any insight here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.