[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[:upper:] inconsistency

From: Francis Wright
Subject: [:upper:] inconsistency
Date: Sun, 7 Jan 2007 16:42:52 -0000

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I would expect the regexp [[:upper:]] to behave the same as [A-Z] (in
English text).  However, by default [[:upper:]] matches all letters,
whereas [A-Z] matches only upper case letters, as I expect.  I have to
set case-fold-search to nil to make [[:upper:]] match only upper case
letters.  This difference in behaviour seems inconsistent and wrong to
me.  I think a search using [[:upper:]] should ignore case-fold-search
as [A-Z] does.

The search command I was using for these tests was
isearch-forward-regexp, but a quick check suggests that the problem
applies also to search-forward-regexp.  I started Emacs with the -Q flag.

In GNU Emacs (i386-mingw-nt5.1.2600)
of 2007-01-07 on MONOLITH
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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: ENG
 locale-coding-system: cp1252
 default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
 encoded-kbd-mode: t
 tooltip-mode: t
 tool-bar-mode: t
 mouse-wheel-mode: t
 menu-bar-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 blink-cursor-mode: t
 unify-8859-on-encoding-mode: t
 utf-translate-cjk-mode: t
 auto-compression-mode: t
 line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <drag-n-drop> <C-down-mouse-1> C-M-s C-g C-h v c a s e SPC SPC f <tab> <return> C-M-s [ A - Z ] C-g C-g C-M-s [ [ : u p p e r ; ] <backspace> <backspace> : ] ] <return> <help-echo> <help-echo> <down-mouse-1> <mouse-2> <help-echo> <down-mouse-1> <mouse-1> <help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> C-x b <return> <C-home> C-M-s <up> C-M-s [ [ : u p p e r : ] ] C-g C-M-s [ A - Z ] C-g C-x 1 <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Creating customization items...
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
To install your edits, invoke [State] and choose the Set operation
Mark set
Quit [2 times]
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]