From: Jarkko Hietaniemi Date: Tue, 15 May 2001 01:41:26 +0000 (+0000) Subject: Fix for 20010514.037; substr() didn't invalidate the locale X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12aa154540b3c1c56d15cc92a5128a812c4e29ae;p=p5sagit%2Fp5-mst-13.2.git Fix for 20010514.037; substr() didn't invalidate the locale collation magic. p4raw-id: //depot/perl@10106 --- diff --git a/pp.c b/pp.c index 91c0f19..d68b689 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) {