Subject: [PATCH] regcomp.c: adjust flag
authorKarl Williamson <public@khwilliamson.com>
Tue, 7 Dec 2010 22:16:07 +0000 (15:16 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 11 Dec 2010 22:57:49 +0000 (15:57 -0700)
When something matches above Latin1, it should have the ANYOF_UTF8 bit
set.

regcomp.c

index afa6712..e450ec2 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -8933,7 +8933,7 @@ parseit:
     if ((ANYOF_FLAGS(ret) & ANYOF_FLAGS_ALL) == ANYOF_INVERT) {
        for (value = 0; value < ANYOF_BITMAP_SIZE; ++value)
            ANYOF_BITMAP(ret)[value] ^= 0xFF;
-       ANYOF_FLAGS(ret) = ANYOF_UNICODE_ALL;
+       ANYOF_FLAGS(ret) = ANYOF_UTF8|ANYOF_UNICODE_ALL;
     }
 
     {