summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-17 17:44:16 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-17 17:44:16 +0000
commitd742c382eed38a7010c93d369ad6896d826c21d6 (patch)
tree1335117a4c19316510dfc6f57f1f626fe80063b9 /pp.c
parent73d6d5898f99c77c19a56e8934a3f0d8ab9918b8 (diff)
downloadperl-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 1d3e365aa9..37ada8ba0c 100644
--- a/pp.c
+++ b/pp.c
@@ -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);