diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-17 17:44:16 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-17 17:44:16 +0000 |
commit | d742c382eed38a7010c93d369ad6896d826c21d6 (patch) | |
tree | 1335117a4c19316510dfc6f57f1f626fe80063b9 /pp.c | |
parent | 73d6d5898f99c77c19a56e8934a3f0d8ab9918b8 (diff) | |
download | perl-d742c382eed38a7010c93d369ad6896d826c21d6.tar.gz |
Minor naming change UTF8_IS_ASCII => UTF8_IS_INVARIANT
p4raw-id: //depot/perlio@9184
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3962,7 +3962,7 @@ PP(pp_reverse) U8* s = (U8*)SvPVX(TARG); U8* send = (U8*)(s + len); while (s < send) { - if (UTF8_IS_ASCII(*s)) { + if (UTF8_IS_INVARIANT(*s)) { s++; continue; } @@ -4789,7 +4789,8 @@ PP(pp_unpack) while ((len > 0) && (s < strend)) { auv = (auv << 7) | (*s & 0x7f); - if (UTF8_IS_ASCII(*s++)) { + /* UTF8_IS_XXXXX not right here - using constant 0x80 */ + if ((U8)(*s++) < 0x80) { bytes = 0; sv = NEWSV(40, 0); sv_setuv(sv, auv); |