summaryrefslogtreecommitdiff
path: root/regcomp.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 /regcomp.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 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 42588ff59d..a1ab06058e 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3285,7 +3285,7 @@ tryagain:
if (RExC_utf8)
SvUTF8_on(sv);
if (sv_utf8_downgrade(sv, TRUE)) {
- char *s = Perl_sv_recode_to_utf8(aTHX_ sv, PL_encoding);
+ char *s = sv_recode_to_utf8(sv, PL_encoding);
STRLEN newlen = SvCUR(sv);
if (!SIZE_ONLY) {