From 422347002777e3c56c6b7046c1bfa5982c3ea6eb Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Mon, 9 Jul 2001 13:24:54 +0000 Subject: [PATCH] Document that using :encoding layer requires using Encode. p4raw-id: //depot/perl@11234 --- ext/Encode/Encode.pm | 1 + lib/PerlIO.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index 104da00..27218d1 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -721,6 +721,7 @@ If Perl is configured to use the new 'perlio' IO system then C provides a "layer" (See L) which can transform data as it is read or written. + use Encode; open(my $ilyad,'>:encoding(iso-8859-7)','ilyad.greek'); print $ilyad @epic; diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index d52d58b..f50cdb3 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -112,7 +112,8 @@ layer specification. Thus: Forces the use of C layer even if the platform default, or C default is something else (such as ":encoding(iso-8859-7)") -which would interfere with binary nature of the stream. +(the C<:encoding> requires C) which would interfere with +binary nature of the stream. =back -- 2.7.4