summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-09 23:43:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-09 23:43:16 +0000
commit7bbb0251073a77c17bc1102da053cd50c26c0e81 (patch)
treee130c185782a5c1ddad82208a55283eb9325b189 /sv.c
parent9114b07188664b459df71eeae70be5619f29b102 (diff)
downloadperl-7bbb0251073a77c17bc1102da053cd50c26c0e81.tar.gz
Make eq work again with utf8 (disabling the upgrading
should no more be necessary since the copies of the scalars are upgraded, not the scalars themselves). Takes care of ID 20001009.001. (The claimed length() bug in 20001009.001 seems bogus to me.) p4raw-id: //depot/perl@7182
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index a2e6fbd558..21b6758342 100644
--- a/sv.c
+++ b/sv.c
@@ -4094,7 +4094,7 @@ Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2)
pv2 = SvPV(sv2, cur2);
/* do not utf8ize the comparands as a side-effect */
- if (cur1 && cur2 && SvUTF8(sv1) != SvUTF8(sv2) && !IN_BYTE && 0) {
+ if (cur1 && cur2 && SvUTF8(sv1) != SvUTF8(sv2) && !IN_BYTE) {
if (SvUTF8(sv1)) {
pv2 = (char*)bytes_to_utf8((U8*)pv2, &cur2);
pv2tmp = TRUE;