summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-31 02:04:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-31 02:04:22 +0000
commit5d170f3a2f1aec382dd58400cc2a2fe1d00859b9 (patch)
treea30f3c6a83845afc14619ab6316c0560dc613ee5 /toke.c
parent9f4817dbf9f375fea5253c12557f39e3774b891c (diff)
downloadperl-5d170f3a2f1aec382dd58400cc2a2fe1d00859b9.tar.gz
Make sv_recode_to_utf8() a real API: the encoding
is a parameter, instead of a global. Document the PERL_ENCODING. p4raw-id: //depot/perl@12783
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 90f8305b6c..9ff0aa8188 100644
--- a/toke.c
+++ b/toke.c
@@ -1654,7 +1654,7 @@ S_scan_const(pTHX_ char *start)
SvPOK_on(sv);
if (PL_encoding && !has_utf8) {
- Perl_sv_recode_to_utf8(aTHX_ sv);
+ Perl_sv_recode_to_utf8(aTHX_ sv, PL_encoding);
has_utf8 = TRUE;
}
if (has_utf8) {