GNU bug report logs - #11309
24.1.50; Case problems with [:upper:] and Cyrillic, Greek

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Aidan Kehoe <kehoea@HIDDEN>; dated Sun, 22 Apr 2012 10:13:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Apr 2012 10:12:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 22 06:12:32 2012
Received: from localhost ([127.0.0.1]:46489 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SLtmR-0003u3-3Z
	for submit <at> debbugs.gnu.org; Sun, 22 Apr 2012 06:12:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36643)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <kehoea@HIDDEN>) id 1SLtmN-0003tn-43
	for submit <at> debbugs.gnu.org; Sun, 22 Apr 2012 06:12:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kehoea@HIDDEN>) id 1SLtlg-00058w-OQ
	for submit <at> debbugs.gnu.org; Sun, 22 Apr 2012 06:11:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,
	TO_NO_BRKTS_PCNT autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:50429)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kehoea@HIDDEN>) id 1SLtlg-00058s-LB
	for submit <at> debbugs.gnu.org; Sun, 22 Apr 2012 06:11:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45577)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kehoea@HIDDEN>) id 1SLtle-00023Z-Gh
	for bug-gnu-emacs@HIDDEN; Sun, 22 Apr 2012 06:11:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kehoea@HIDDEN>) id 1SLtlb-00058Q-6C
	for bug-gnu-emacs@HIDDEN; Sun, 22 Apr 2012 06:11:41 -0400
Received: from zeus.asclepian.ie ([78.47.46.212]:51788)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kehoea@HIDDEN>) id 1SLtla-00057s-QD
	for bug-gnu-emacs@HIDDEN; Sun, 22 Apr 2012 06:11:39 -0400
Received: by zeus.asclepian.ie (Postfix, from userid 1002)
	id 4F5F782D52A; Sun, 22 Apr 2012 11:11:35 +0100 (IST)
From: Aidan Kehoe <kehoea@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Message-ID: <4f93d952.287f22e03@HIDDEN>
Date: Sun, 22 Apr 2012 11:11:30 +0100
To: bug-gnu-emacs@HIDDEN
Subject: 24.1.50; Case problems with [:upper:] and Cyrillic, Greek
X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta31) "ginger" 5d3bb1100832 XEmacs
	Lucid (i386-apple-darwin10.8.0)
X-NS5-file-as-sent: t
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)


This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

The Lisp manual says this when describing character classes:

  `[:lower:]'
       This matches any lower-case letter, as determined by the current
       case table (*note Case Tables::).  If `case-fold-search' is
       non-`nil', this also matches any upper-case letter.

And:

  `[:upper:]'
       This matches any upper-case letter, as determined by the current
       case table (*note Case Tables::).  If `case-fold-search' is
       non-`nil', this also matches any lower-case letter.
 =20
OK, so let's test this:

(let ((case-fold-search t))
  (string-match "[[:upper:]]" "a\u0686"))
=3D> 0 ;; As documented

(upcase "\u0430") ;; CYRILLIC SMALL LETTER A
=3D> "=D0=90" ;; "\u0410", so it's in the case table

(let ((case-fold-search t))
  (string-match "[[:upper:]]" "\u0430\u0686"))
=3D> nil ;; Ah, this is unexpected.

(let ((case-fold-search t))
  (string-match "[[:lower:]]" "\u0410\u0686"))
=3D> 0 ;; But this works as documented.=20

(upcase "\u03b2") ;; GREEK SMALL LETTER BETA
=3D> "=CE=92" ;; "\u0392", it's in the case table

(let ((case-fold-search t))
  (string-match "[[:upper:]]" "\u03b2\u5357"))
=3D> nil ;; Oops

(let ((case-fold-search t))
  (string-match "[[:lower:]]" "\u0392\u5357"))
=3D> 0 ;; But this works, again.=20

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Sources/emacs/nextstep/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.1.50.1 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2012-04-22 on bonbon
Windowing system distributor `Apple', version 10.3.1038
Configured using:
 `configure '--with-ns''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-b C-b C-b C-b C-b C-b C-b C-f SPC \ x 7 f C-e C-j=20
C-p C-f C-f C-f C-x =3D C-a ( SPC C-f C-x =3D C-a C-f s=20
t <backspace> <backspace> m u l t <backspace> i b y=20
t e - s t r i n g - p C-a C-f C-f C-f C-f t C-e ) C-j=20
C-p C-p C-p C-n C-f C-f C-f C-f C-f C-f C-f C-f C-f=20
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20
C-f C-f C-f C-b C-b C-b C-f C-x =3D C-x 1 C-f C-f C-f=20
C-b C-k <escape> b <left> C-k C-p C-p C-p C-p C-p C-p=20
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20
C-p C-e C-b C-b C-b C-y C-k ) C-j C-p C-p C-e C-b C-b=20
C-b C-b C-d C-e C-j C-p C-p C-e C-b C-b C-b C-t C-e=20
C-j C-p C-p C-e C-x C-b C-x o C-n C-n C-n RET C-x 1=20
C-x b <return> C-x b * s c <tab> <return> C-n C-p C-n=20
C-n e n a b l e - m u l t i b y t e - c h a r a c t=20
e r s C-j C-x b <return> C-p C-n RET C-v l C-a C-n=20
C-n C-n C-e C-x 2 C-x o C-x b * s c <backspace> <backspace>=20
<backspace> C-g C-x C-b C-x o C-n C-n C-n C-n RET C-p=20
C-p C-p C-x o C-p C-p C-a C-n C-SPC C-n C-n C-n C-n=20
<escape> w <escape> x r e p o r t - e m a c s - b u=20
g s <tab> C-g <escape> x r e p o r t - e m a c s -=20
b u g <return>

Recent messages:
insert-file-contents-literally: Opening input file: no such file or direc=
tory, /Sources/emacs/nextstep/Emacs.app/Contents/Resources/etc/DOC-24.1.5=
0.1
Mark set
Char: =C3=A4 (228, #o344, #xe4, file ...) point=3D499 of 612 (81%) column=
=3D1 [2 times]
Char: DEL (127, #o177, #x7f) point=3D466 of 623 (75%) column=3D3
Char: =C3=A4 (228, #o344, #xe4, file ...) point=3D466 of 625 (74%) column=
=3D3
Char: DEL (127, #o177, #x7f) point=3D486 of 647 (75%) column=3D23
Mark set
Quit
byte-code: Beginning of buffer [2 times]
Mark set
Quit

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils find-func vc-git cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs mule-util
multi-isearch info help-mode easymenu view help-fns byte-opt warnings cl
compile comint ansi-color ring bytecomp byte-compile cconv macroexp
vc-hg time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
ns-win tool-bar dnd fontset image regexp-opt fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind ns multi-tty emacs)

--=20
=E2=80=98Iodine deficiency was endemic in parts of the UK until, through =
what has been
described as =E2=80=9Can unplanned and accidental public health triumph=E2=
=80=9D, iodine was
added to cattle feed to improve milk production in the 1930s.=E2=80=99
(EN Pearce, Lancet, June 2011)




Acknowledgement sent to Aidan Kehoe <kehoea@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#11309; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.