summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-10 13:44:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-10 13:44:49 +0000
commit085a54d9d9ac170c5d83f58a4044ae87b7a9d8a5 (patch)
tree776351fa6cf14d4c6aff8b5ccda7d59ae52949fd /perl.c
parent2d7a8e4a66603f18090334deec9cdaa9af6fd18f (diff)
downloadperl-085a54d9d9ac170c5d83f58a4044ae87b7a9d8a5.tar.gz
NI-S doesn't need these comments :-) but I'm commenting anyway.
p4raw-id: //depot/perl@17166
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index ee33a9ceb0..8566e5f7e6 100644
--- a/perl.c
+++ b/perl.c
@@ -1478,10 +1478,15 @@ print \" \\@INC:\\n @INC\\n\";");
if (!PL_do_undump)
init_postdump_symbols(argc,argv,env);
+ /* PL_wantutf8 is conditionally turned on by
+ * locale.c:Perl_init_i18nl10n() if the environment
+ * look like the user wants to use UTF-8. */
if (PL_wantutf8) { /* Requires init_predump_symbols(). */
IO* io;
PerlIO* fp;
SV* sv;
+ /* Turn on UTF-8-ness on STDIN, STDOUT, STDERR
+ * _and_ the default open discipline. */
if (PL_stdingv && (io = GvIO(PL_stdingv)) && (fp = IoIFP(io)))
PerlIO_binmode(aTHX_ fp, IoTYPE(io), 0, ":utf8");
if (PL_defoutgv && (io = GvIO(PL_defoutgv)) && (fp = IoOFP(io)))