change#5921 neglected to make eq honor "use bytes"
Gurusamy Sarathy [Thu, 4 May 2000 16:09:28 +0000 (16:09 +0000)]
p4raw-link: @5921 on //depot/perl: c5cc35007718d4b8a82486110aec2d59e69a4f79

p4raw-id: //depot/perl@6061

sv.c

diff --git a/sv.c b/sv.c
index 7f7c9a6..e76e40f 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -3923,7 +3923,7 @@ Perl_sv_eq(pTHX_ register SV *str1, register SV *str2)
     if (cur1) {
        if (!str2)
            return 0;
-       if (SvUTF8(str1) != SvUTF8(str2)) {
+       if (SvUTF8(str1) != SvUTF8(str2) && !IN_BYTE) {
            if (SvUTF8(str1)) {
                sv_utf8_upgrade(str2);
            }