Use DO_UTF8().
Jarkko Hietaniemi [Sun, 3 Dec 2000 08:16:36 +0000 (08:16 +0000)]
p4raw-id: //depot/perl@7959

op.c

diff --git a/op.c b/op.c
index 3b04fc0..9d00b7b 100644 (file)
--- a/op.c
+++ b/op.c
@@ -2908,7 +2908,7 @@ Perl_pmruntime(pTHX_ OP *o, OP *expr, OP *repl)
            p = SvPV(pat, plen);
            pm->op_pmflags |= PMf_SKIPWHITE;
        }
-       if ((PL_hints & HINT_UTF8) || (SvUTF8(pat) && !(PL_hints & HINT_BYTE)))
+       if ((PL_hints & HINT_UTF8) || DO_UTF8(pat))
            pm->op_pmdynflags |= PMdf_UTF8;
        pm->op_pmregexp = CALLREGCOMP(aTHX_ p, p + plen, pm);
        if (strEQ("\\s+", pm->op_pmregexp->precomp))