On Tue, May 25, 2010 at 10:31:39PM +0100, George Harpur wrote:
> I'd assumed that when using the wide character functions (tre_regwcomp,
> tre_regwexec), behaviour would be independent of locale, but this doesn't

Yes, that is the intention.

> seem to be the case.  I find (under Windows, UK locale) that if I try to
> match a simple RE such as [[:alpha:]] against an alpha char >256, it fails.
> Looking at the code, it appears that TRE_MB_CUR_MAX is evaluating to 1, and
> this triggers a call to tre_expand_ctype, which only considers alphas <

This is a bug; tre_expand_ctype should not be used with the regwcomp
functions.  Arguably, it should always be used and the selection
whether to use the lookup table or a call to iswctype() should be done
at matching time.

--
Ville
_______________________________________________
TRE-general mailing list tre-general@laurikari.net
http://laurikari.net/mailman/listinfo/tre-general
http://laurikari.net/tre/

Reply via email to