summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-12-09 13:49:40 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-12-09 13:49:40 +0000
commit7889fe52c8bdedf274e4826ad460ef6c3606ca6a (patch)
tree3d161635f94f9d03924fbf79676ba0e4c27ae2ae /util.c
parent553151e7a76c75a9f0ccbf6e0802e72fde2ec8f2 (diff)
downloadperl-7889fe52c8bdedf274e4826ad460ef6c3606ca6a.tar.gz
UTF8 output prework.
- Store $\ and $, as SVs so they can have SvUTF8 flag - use do_print() rather than raw PerlIO_write() to print them. p4raw-id: //depot/perlio@8049
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util.c b/util.c
index d0ea96cbdf..0dd9fad2c3 100644
--- a/util.c
+++ b/util.c
@@ -3643,8 +3643,7 @@ Perl_new_struct_thread(pTHX_ struct perl_thread *t)
PL_nrs = newSVsv(t->Tnrs);
PL_rs = SvREFCNT_inc(PL_nrs);
PL_last_in_gv = Nullgv;
- PL_ofslen = t->Tofslen;
- PL_ofs = savepvn(t->Tofs, PL_ofslen);
+ PL_ofs_sv = SvREFCNT_inc(PL_ofs_sv);
PL_defoutgv = (GV*)SvREFCNT_inc(t->Tdefoutgv);
PL_chopset = t->Tchopset;
PL_bodytarget = newSVsv(t->Tbodytarget);
@@ -3961,7 +3960,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op)
if (op == OP_phoney_OUTPUT_ONLY || op == OP_phoney_INPUT_ONLY) {
if (name && *name)
Perl_warner(aTHX_ WARN_IO, "Filehandle %s opened only for %sput",
- name,
+ name,
(op == OP_phoney_INPUT_ONLY ? "in" : "out"));
else
Perl_warner(aTHX_ WARN_IO, "Filehandle opened only for %sput",