Article View: gnu.emacs.bug
Article #842(string-match "[A-[]" "A") fails when case-fold-search
From: enami tsugutomo
Date: Tue, 10 Nov 1992 06:19
Date: Tue, 10 Nov 1992 06:19
29 lines
1331 bytes
1331 bytes
In GNU Emacs 18.59.0 of Tue Nov 10 1992 on kitt (berkeley-unix)
(string-match "[A-[]" "A") fails when case-fold-search is t. This is
because bug in regex.c. PATFECTH does implecit translate, so we must
use PATFETCH_RAW. Here is a patch.
--enami.
===================================================================
RCS file: RCS/regex.c,v
retrieving revision 1.1
diff -u -r1.1 regex.c
--- 1.1 1992/11/10 04:55:00
+++ regex.c 1992/11/10 04:55:51
@@ -404,12 +404,12 @@
/* Read in characters and ranges, setting map bits */
while (1)
{
- PATFETCH (c);
+ PATFETCH_RAW (c);
if (c == ']' && p != p1 + 1) break;
if (*p == '-' && p[1] != ']')
{
- PATFETCH (c1);
- PATFETCH (c1);
+ PATFETCH_RAW (c1);
+ PATFETCH_RAW (c1);
if (translate)
while (c <= c1)
{
Technical Details
Message-ID:
<9211100619.AA05172@kitt.sys.ptg.sony.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!sys.PTg.sony.co.JP!enamiShow Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!sys.PTg.sony.co.JP!enami From: enami@sys.PTg.sony.co.JP (enami tsugutomo) Subject: (string-match "[A-[]" "A") fails when case-fold-search Message-ID: <9211100619.AA05172@kitt.sys.ptg.sony.co.jp> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 10 Nov 1992 06:19:02 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 30