--- Begin Message ---
Subject: |
24.3.92; Uppercase umlauts and case-fold-search t |
Date: |
Wed, 30 Jul 2014 17:11:01 +0200 |
Hello,
sorry if this is just a unibyte/multibyte thing I don't understand, but
it makes no sense to me:
(let ((str "École")
(case-fold-search t))
(when (string-match "[[:upper:]]" str)
(match-string 0 str)))
==> "c"
However,
(let ((str "École")
(case-fold-search nil))
(when (string-match "[[:upper:]]" str)
(match-string 0 str)))
==> "É"
I would expect "É" in both examples.
Thanks,
Michael.
In GNU Emacs 24.3.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
of 2014-07-17 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description: Debian GNU/Linux testing (jessie)
Important settings:
value of $LC_ALL: de_DE.utf8
value of $LC_COLLATE: C
value of $LC_TIME: C
value of $LANG: de_DE.utf8
locale-coding-system: utf-8-unix
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#18150: 24.3.92; Uppercase umlauts and case-fold-search t |
Date: |
Sat, 20 Feb 2016 13:06:01 +0200 |
> Date: Tue, 16 Feb 2016 20:57:41 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden, address@hidden
>
> If, when case-fold-search is non-nil, we want both [:upper:] and
> [:lower:] to match any letter that has a case variant, then the patch
> below seems to do the job. Does anyone see a problem with it?
No further comment, so I pushed a slightly safer change to emacs-25
branch, and I'm marking this bug done.
Thanks.
--- End Message ---