GNU bug report logs -
#18150
24.3.92; Uppercase umlauts and case-fold-search t
Previous Next
Reported by: michael_heerdegen <at> web.de
Date: Wed, 30 Jul 2014 15:12:01 UTC
Severity: normal
Found in version 24.3.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 18150 <at> debbugs.gnu.org (full text, mbox):
> From: Marcin Borkowski <mbork <at> mbork.pl>
> Date: Tue, 16 Feb 2016 15:53:41 +0100
> Cc: 18150 <at> debbugs.gnu.org
>
> Confirmed on emacs -Q (GNU Emacs 25.1.50.2, commit 4ccd268).
>
> Best,
> mb
>
> On 2014-07-30, at 18:11, Michael Heerdegen <michael_heerdegen <at> web.de> wrote:
>
> > 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.
What do we expect the result to be in the variant below?
(let ((str "ecole")
(case-fold-search t))
(when (string-match "[[:upper:]]" str)
(match-string 0 str)))
This bug report was last modified 9 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.