[Mono-list] Bug #45966 - Mono/Class Libraries

Marco Craveiro marco@craveiro.fsnet.co.uk
04 Jan 2004 21:45:08 +0000


hola monos,

<snip>
> This bug was posted by me long time ago :-)
> I've thought about it a little bit and think this might be caused 
> by another bug:
> http://bugzilla.ximian.com/show_bug.cgi?id=45976

ok this was a bit of a delayed reply but i found the solution to this
problem just before i went on holidays. i haven't actually made a proper
fix yet but like you say Jorg, the problem seems to be with case
sensitiveness. 

as far as i can see all the regexp code takes into account
case-sensitiveness except for intervals. when you add one or more
intervals, both EmitRange and EmitSet (compiler.cs) seem to fail to take
this into account. i think the easiest fix to make is:

- for ranges, if ignore case normalise the interval to lower case.
EmitCharacter already does this.

- for sets, its more complicated. the best bet is to include both the
upper case and lower case intervals in the bitmap. 

i'm implementing my fix as described but if there is a regexp dude
around here who can see errors in my reasoning please let me know. i'll
post the fix as soon as i can re-read the tree - i'm having problems
with cvs at the moment.

cheers,

marco
-- 
serenese y apunte bien! va usted a matar un hombre! -- ultimas palavras
de che guevara