diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-15 01:41:26 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-15 01:41:26 +0000 |
commit | 12aa154540b3c1c56d15cc92a5128a812c4e29ae (patch) | |
tree | 23e66afe4895031d232c431014b9a454abe90664 | |
parent | b65a4548c7020e7debb7734655e1dc0dd0213cf6 (diff) | |
download | perl-12aa154540b3c1c56d15cc92a5128a812c4e29ae.tar.gz |
Fix for 20010514.037; substr() didn't invalidate the locale
collation magic.
p4raw-id: //depot/perl@10106
-rw-r--r-- | pp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |