diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-31 14:44:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-31 14:44:33 +0000 |
commit | 121910a497e33cc9235ecb1b0488ff5200159bc4 (patch) | |
tree | 00034df2cba6330202b1d350cfcdc8aa828c089f /sv.c | |
parent | 4bdee82d7bc2074b4348e7a8af9486f836481a0a (diff) | |
download | perl-121910a497e33cc9235ecb1b0488ff5200159bc4.tar.gz |
Extend the effect of the encoding pragma to chr() and ord().
TODO: regex literals, reentrancy problems with the utf8
and charnames pragmas.
p4raw-id: //depot/perl@12790
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10378,7 +10378,7 @@ The PV of the sv is returned. char * Perl_sv_recode_to_utf8(pTHX_ SV *sv, SV *encoding) { - if (SvPOK(sv) && !SvUTF8(sv) && SvROK(encoding)) { + if (SvPOK(sv) && !DO_UTF8(sv) && SvROK(encoding)) { SV *uni; STRLEN len; char *s; |