Re: Unicode/EBCDIC
[p5sagit/p5-mst-13.2.git] / regcomp.c
index 69d114e..9a935f7 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -2881,6 +2881,8 @@ tryagain:
                            else {
                                numlen = 1;     /* allow underscores */
                                ender = (UV)scan_hex(p + 1, e - p - 1, &numlen);
+                               if (ender > 0xff)
+                                   RExC_utf8 = 1;
                                /* numlen is generous */
                                if (numlen + len >= 127) {
                                    p--;