diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-12 17:08:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-12 17:08:15 +0000 |
commit | 33931edb9b78fb54cdfd92340bd9f062fe776977 (patch) | |
tree | 30fe81c9850cdf188fbe7a8e5bb80e7fff0fd877 /lib/open.pm | |
parent | fb7a2351af30061e2a01acdf19aa26160386fee3 (diff) | |
download | perl-33931edb9b78fb54cdfd92340bd9f062fe776977.tar.gz |
The problem seems to be in PerlIO::Layer::->find() not
accepting the ":encoding(blurflur)" arguments.
p4raw-id: //depot/perl@11319
Diffstat (limited to 'lib/open.pm')
-rw-r--r-- | lib/open.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/open.pm b/lib/open.pm index 4c18c100b7..1456666edd 100644 --- a/lib/open.pm +++ b/lib/open.pm @@ -69,20 +69,18 @@ sub import { if ($locale_encoding =~ /^utf-?8$/i) { $layer = "utf8"; } else { - $layer = "encoding"; + $layer = "encoding($locale_encoding)"; } } unless(PerlIO::Layer::->find($layer)) { carp("Unknown discipline layer '$layer'"); } - if (defined $locale_encoding) { - $layer = "$layer($locale_encoding)"; - } push(@val,":$layer"); if ($layer =~ /^(crlf|raw)$/) { $^H{"open_$type"} = $layer; } } + # print "# type = $type, val = @val\n"; if ($type eq 'IN') { $in = join(' ',@val); } |