summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-31 14:44:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-31 14:44:33 +0000
commit121910a497e33cc9235ecb1b0488ff5200159bc4 (patch)
tree00034df2cba6330202b1d350cfcdc8aa828c089f /sv.c
parent4bdee82d7bc2074b4348e7a8af9486f836481a0a (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 553267a853..afd2aadf3b 100644
--- a/sv.c
+++ b/sv.c
@@ -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;