summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-06 15:34:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-06 15:34:00 +0000
commitaaa800280dee4b6e1a3c29a204a21ca87558d716 (patch)
tree0db2efec180f916b651201cded20c061619997d1 /regcomp.c
parentf8b27a635b65adb6389cb6bfb488f05f8f7ef8f2 (diff)
downloadperl-aaa800280dee4b6e1a3c29a204a21ca87558d716.tar.gz
Make /x{abcd}/ to work without use utf8.
p4raw-id: //depot/perl@9058
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 69d114e9e9..9a935f72c2 100644
--- 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--;