diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-18 18:41:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-18 18:41:33 +0000 |
commit | 90f44359bb7541a575a1666f79be58a556605cf6 (patch) | |
tree | b3a91266cabf50b1fb765a7db7afcd2b9ca9d2eb /sv.c | |
parent | a7312d381f9e9a4b4701b842c00b370d3e74866b (diff) | |
download | perl-90f44359bb7541a575a1666f79be58a556605cf6.tar.gz |
UTF-8 tweaks.
p4raw-id: //depot/perl@8827
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -4724,17 +4724,15 @@ Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2) if (SvUTF8(sv1)) { char *pv = (char*)bytes_from_utf8((U8*)pv1, &cur1, &is_utf8); - if (is_utf8) - return 0; - pv1tmp = (pv != pv1); - pv1 = pv; + + if ((pv1tmp = (pv != pv1))) + pv1 = pv; } else { char *pv = (char *)bytes_from_utf8((U8*)pv2, &cur2, &is_utf8); - if (is_utf8) - return 0; - pv2tmp = (pv != pv2); - pv2 = pv; + + if ((pv2tmp = (pv != pv2))) + pv2 = pv; } } |