GNU bug report logs - #16581
suggested code simplification in dfa.c

Previous Next

Package: grep;

Reported by: Aharon Robbins <arnold <at> skeeve.com>

Date: Tue, 28 Jan 2014 20:12:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 16581 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: arnold <at> skeeve.com, grep <at> aaroncrane.co.uk
Cc: 16581 <at> debbugs.gnu.org
Subject: Re: bug#16581: suggested code simplification in dfa.c
Date: Thu, 30 Jan 2014 13:56:10 -0800
On 01/30/2014 07:51 AM, arnold <at> skeeve.com wrote:
> I suggest starting with the XOR changes for unibyte locales - they seem
> (to me) to be good no matter what. And then separately try to deal with
> the multibyte case.

Unfortunately the changes don't work even for unibyte locales, since 
unibyte locales can have the same problem, i.e., c != tolower (c) && c 
!= toupper (c).  Admittedly this is rare, but it's possible (users can 
define their own locales, after all), and fixing the code for the 
multibyte case will induce similar changes for unibyte, I hope.

>
> And just to increase the need for Aspirin, any idea how regex handles
> this case?

No idea, sorry.  Rounds of aspirin for everybody!




This bug report was last modified 11 years and 78 days ago.

Previous Next


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