Re: Gobo Regexp and Unicode support.

"Ted" <kkkkg999-/[email protected]> Sun, 15 Jun 2008 09:48:00 -0000
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
--- In [email protected], Colin Paul Adams <colin@...> wrote:
>
> >>>>> "Eric" == Eric Bezault <ericb@...> writes:
> 
>     Eric> Would it be acceptable to use Ted's patch (with some
>     Eric> protection when accessing the 256-bit pair of arrays) and
>     Eric> make it clear in the doc of the regexp library that for
>     Eric> case-insensitivity, \w, etc., only ASCII characters are
> 
> I guess that is a question to the whole of the list.
> 
> The current situation is that the library accepts UC_UTF8_STRING and
> silenlty gives wrong results. Probably anything is better than this.
> 
> Maybe Ted's patch should be applied as it is - then a case-insensitive
> search against a target string containing a non-Latin-1 code will
> crash. I think this is better than silently giving wrong results.

Do you have an example searching what against what the crash happens?
That is interesting to me. Because I tried to apply the modified Gobo
Regexp to Unicode editor equipped EiffelStudio search facility, didn't
get any crash when playing with case insensitive search against
non-Lanin-1 texts. Do you rescue those crashes in the library or
something I don't know?

Ted