EBCDIC: it's much nicer to compare Unicode code points
Jarkko Hietaniemi [Sun, 3 Feb 2002 17:29:57 +0000 (17:29 +0000)]
to Unicode code points.

p4raw-id: //depot/perl@14535

regexec.c

index 70d401d..830488a 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -2332,7 +2332,7 @@ S_regmatch(pTHX_ regnode *prog)
                        if (l >= PL_regeol)
                             sayNO;
                        if (NATIVE_TO_UNI(*(U8*)s) !=
-                           utf8_to_uvchr((U8*)l, &ulen))
+                           utf8_to_uvuni((U8*)l, &ulen))
                             sayNO;
                        l += ulen;
                        s ++;
@@ -2344,7 +2344,7 @@ S_regmatch(pTHX_ regnode *prog)
                        if (l >= PL_regeol)
                            sayNO;
                        if (NATIVE_TO_UNI(*((U8*)l)) !=
-                           utf8_to_uvchr((U8*)s, &ulen))
+                           utf8_to_uvuni((U8*)s, &ulen))
                            sayNO;
                        s += ulen;
                        l ++;