all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Aidan Kehoe <kehoea@parhasard.net>
Cc: 11309@debbugs.gnu.org
Subject: bug#11309: 24.1.50; Case problems with [:upper:] and Cyrillic, Greek
Date: Mon, 07 Dec 2020 18:24:34 +0100	[thread overview]
Message-ID: <87blf5cywd.fsf@gnus.org> (raw)
In-Reply-To: <4f93d952.287f22e03@parhasard.net> (Aidan Kehoe's message of "Sun, 22 Apr 2012 11:11:30 +0100")

Aidan Kehoe <kehoea@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





  reply	other threads:[~2020-12-07 17:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-22 10:11 bug#11309: 24.1.50; Case problems with [:upper:] and Cyrillic, Greek Aidan Kehoe
2020-12-07 17:24 ` Lars Ingebrigtsen [this message]
2020-12-07 22:14 ` Mattias Engdegård
2020-12-08 14:48   ` Mattias Engdegård
2020-12-08 16:02     ` Eli Zaretskii
2020-12-08 16:57       ` Mattias Engdegård
2020-12-08 17:05         ` Eli Zaretskii
2020-12-09 14:37           ` Mattias Engdegård
2020-12-09 15:46             ` Eli Zaretskii
2020-12-10  9:36             ` Mattias Engdegård
2020-12-10 14:17               ` Eli Zaretskii
2020-12-10 15:48                 ` Mattias Engdegård
2020-12-10 15:53                   ` Lars Ingebrigtsen
2020-12-11  9:18                     ` Mattias Engdegård
2020-12-11 15:26                       ` Lars Ingebrigtsen
2020-12-08 16:10     ` Andreas Schwab
2020-12-08 16:19       ` Mattias Engdegård
2020-12-08 17:01     ` Basil L. Contovounesios
2020-12-08 17:04       ` Mattias Engdegård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blf5cywd.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=11309@debbugs.gnu.org \
    --cc=kehoea@parhasard.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.