diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-07 22:37:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-07 22:37:51 +0000 |
commit | 799ef3cbf1e54d039c2681bb415c66a8acfbc6cd (patch) | |
tree | e300409ec36e330b6f2b305d2e662e2ebfa4b58f /toke.c | |
parent | cf48d248eb62e81239204ca4ca6b33029875e0bd (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |