X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=sv.c;h=00c5cdea50ed220f9384d4dafd03da120877661b;hb=9df442c23deb1b1ba2f163eb54deeb4fe82ea80c;hp=2d4683903cfb351193bf5b83c9021833737eefed;hpb=e01c5899dd5c15c076ff80faae646f1bb851ca52;p=p5sagit%2Fp5-mst-13.2.git diff --git a/sv.c b/sv.c index 2d46839..00c5cde 100644 --- a/sv.c +++ b/sv.c @@ -1,7 +1,7 @@ /* sv.c * * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - * 2000, 2001, 2002, 2003, by Larry Wall and others + * 2000, 2001, 2002, 2003, 2004, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -3494,7 +3494,8 @@ Perl_sv_utf8_upgrade_flags(pTHX_ register SV *sv, I32 flags) } if (hibit) { STRLEN len; - + (void)SvOOK_off(sv); + s = (U8*)SvPVX(sv); len = SvCUR(sv) + 1; /* Plus the \0 */ SvPVX(sv) = (char*)bytes_to_utf8((U8*)s, &len); SvCUR(sv) = len - 1;