X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FEncode%2Fencoding.pm;h=a0a620868f0f87365a1598eb7edf1e4aded715e8;hb=f2a2953c25503948c9a5e44b5ee7fe84a7da6b46;hp=1b3dd840cc9350b7631e83cf167e8b4b2ea011ec;hpb=735b7a62d039909fa334af8e05d4788f54c2c65a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Encode/encoding.pm b/ext/Encode/encoding.pm index 1b3dd84..a0a6208 100644 --- a/ext/Encode/encoding.pm +++ b/ext/Encode/encoding.pm @@ -1,5 +1,5 @@ package encoding; -our $VERSION = do { my @r = (q$Revision: 1.2 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; +our $VERSION = do { my @r = (q$Revision: 1.25 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; use Encode; @@ -47,7 +47,8 @@ sub unimport{ undef ${^ENCODING}; binmode(STDIN, ":raw"); binmode(STDOUT, ":raw"); - binmode(STDERR, ":raw"); + # Leaves STDERR alone. + # binmode(STDERR, ":raw"); } 1; @@ -121,7 +122,8 @@ You can override this by giving extra arguments. See below. =item use encoding [I] ; Sets the script encoding to I and file handle disciplines of -STDIN, STDOUT, and STDERR are set to ":encoding(I)". +STDIN, STDOUT are set to ":encoding(I)". Note STDERR will not +be changed. If no encoding is specified, the environment variable L is consulted. If no encoding can be found, C'> @@ -138,8 +140,8 @@ first I. =item no encoding; -Unsets the script encoding and the disciplines of STDIN, STDOUT, and -STDERR are reset to ":raw". +Unsets the script encoding and the disciplines of STDIN, STDOUT are +reset to ":raw". =back