summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-05-15 01:41:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-15 01:41:26 +0000
commit12aa154540b3c1c56d15cc92a5128a812c4e29ae (patch)
tree23e66afe4895031d232c431014b9a454abe90664
parentb65a4548c7020e7debb7734655e1dc0dd0213cf6 (diff)
downloadperl-12aa154540b3c1c56d15cc92a5128a812c4e29ae.tar.gz
Fix for 20010514.037; substr() didn't invalidate the locale
collation magic. p4raw-id: //depot/perl@10106
-rw-r--r--pp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 91c0f19bea..d68b689745 100644
--- a/pp.c
+++ b/pp.c
@@ -2808,6 +2808,9 @@ PP(pp_substr)
sv_pos_u2b(sv, &pos, &rem);
tmps += pos;
sv_setpvn(TARG, tmps, rem);
+#ifdef USE_LOCALE_COLLATE
+ sv_unmagic(TARG, 'o');
+#endif
if (utf8_curlen)
SvUTF8_on(TARG);
if (repl) {