projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1fef36c
)
substr() assumes utf8 without say-so
Larry Wall [Fri, 7 Aug 1998 12:25:12 +0000 (
05:25
-0700)]
Message-Id: <
199808071925
.MAA13436@wall.org>
Subject: [PATCH 5.005_50] substr bug?
p4raw-id: //depot/perl@1768
pp.c
patch
|
blob
|
blame
|
history
diff --git
a/pp.c
b/pp.c
index
2d2aa4c
..
3accab2
100644
(file)
--- a/
pp.c
+++ b/
pp.c
@@
-1839,6
+1839,8
@@
PP(pp_substr)
else
curlen = utfcurlen;
}
+ else
+ utfcurlen = 0;
if (pos >= arybase) {
pos -= arybase;