diff options
author | Larry Wall <larry@wall.org> | 1998-08-07 05:25:12 -0700 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-08 22:42:29 +0000 |
commit | d1c2b58ac830663c9c79b4948c8989557cac76b8 (patch) | |
tree | 292094fc1385d6f4e3b1beee16a024cbc5487a41 /pp.c | |
parent | 1fef36c76e43abddac50405663ebca5d4c4ce4e0 (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1839,6 +1839,8 @@ PP(pp_substr) else curlen = utfcurlen; } + else + utfcurlen = 0; if (pos >= arybase) { pos -= arybase; |