summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-07 22:37:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-07 22:37:51 +0000
commit799ef3cbf1e54d039c2681bb415c66a8acfbc6cd (patch)
treee300409ec36e330b6f2b305d2e662e2ebfa4b58f /toke.c
parentcf48d248eb62e81239204ca4ca6b33029875e0bd (diff)
downloadperl-799ef3cbf1e54d039c2681bb415c66a8acfbc6cd.tar.gz
As suggested by Anton Tagunov, eq and cmp now obey the
encoding pragma (by remapping their byte argument if the other argument is in Unicode). Also fix a bug found by Anton where ord undef under the encoding pragma would barf. ([ID 20020307.009] A null pointer dereference with 'use encoding') Finally, use the nicer form of sv_recode_to_utf8. p4raw-id: //depot/perl@15085
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 168a48a3f9..b0a5f5aa99 100644
--- a/toke.c
+++ b/toke.c
@@ -1690,7 +1690,7 @@ S_scan_const(pTHX_ char *start)
SvPOK_on(sv);
if (PL_encoding && !has_utf8) {
- Perl_sv_recode_to_utf8(aTHX_ sv, PL_encoding);
+ sv_recode_to_utf8(sv, PL_encoding);
has_utf8 = TRUE;
}
if (has_utf8) {