diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-20 00:55:54 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-20 00:55:54 +0000 |
commit | b310b0538cc1a7948587a9e5ff30683fec2a3ece (patch) | |
tree | f3f8fa0dd8ad9ba1aecae60fa5a8079b3fb69237 /lib/open.pm | |
parent | 563aca73f1f51dd4b10089896b544a6ae41316cb (diff) | |
download | perl-b310b0538cc1a7948587a9e5ff30683fec2a3ece.tar.gz |
If it looks like UTF-8 (either nl_langinfo or locale variables),
think UTF-8, embrace your inner UTF-8, as suggested by Larry.
(And as suggested by Markus Kuhn.)
While we are at it, document also the case of
mixed hash keys as a known potential troublemaker.
(Since it's locale-related, sometimes.)
p4raw-id: //depot/perl@15350
Diffstat (limited to 'lib/open.pm')
-rw-r--r-- | lib/open.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/open.pm b/lib/open.pm index 7d59d9abfc..363a005619 100644 --- a/lib/open.pm +++ b/lib/open.pm @@ -242,6 +242,11 @@ pragma. =back +If your locale environment variables (LANGUAGE, LC_ALL, LC_CTYPE, LANG) +contain the strings 'UTF-8' or 'UTF8' (case-insensitive matching), +the default encoding of your STDIN, STDOUT, and STDERR, and of +B<any subsequent file open>, is UTF-8. + Directory handles may also support disciplines in future. =head1 NONPERLIO FUNCTIONALITY |