summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorLarry Wall <larry@wall.org>1998-08-07 05:25:12 -0700
committerGurusamy Sarathy <gsar@cpan.org>1998-08-08 22:42:29 +0000
commitd1c2b58ac830663c9c79b4948c8989557cac76b8 (patch)
tree292094fc1385d6f4e3b1beee16a024cbc5487a41 /pp.c
parent1fef36c76e43abddac50405663ebca5d4c4ce4e0 (diff)
downloadperl-d1c2b58ac830663c9c79b4948c8989557cac76b8.tar.gz
substr() assumes utf8 without say-so
Message-Id: <199808071925.MAA13436@wall.org> Subject: [PATCH 5.005_50] substr bug? p4raw-id: //depot/perl@1768
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 2d2aa4c25e..3accab2d8c 100644
--- a/pp.c
+++ b/pp.c
@@ -1839,6 +1839,8 @@ PP(pp_substr)
else
curlen = utfcurlen;
}
+ else
+ utfcurlen = 0;
if (pos >= arybase) {
pos -= arybase;