summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2012-03-18 10:26:22 +1100
committerTony Cook <tony@develop-help.com>2012-03-18 10:26:22 +1100
commit1d8aef309f72b162395b7beed4462bc5964d973f (patch)
tree065095d90949339a770d29133869c080580e97f4
parent95670bde8957add23fdad6b1c9da76ef317f788f (diff)
downloadperl-tonyc/readline-fixed-doc.tar.gz
[rt #79960] document how broken $/ = \N is for unicode streamstonyc/readline-fixed-doc
It's kind of late in the release process to change how $/ = \N works for unicode streams, briefly document how broken it is and let the user know it may change.
-rw-r--r--pod/perlvar.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 72968f1b80..ea1f601a80 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -1348,6 +1348,13 @@ want to read in record mode is probably unusable in line mode.)
Non-VMS systems do normal I/O, so it's safe to mix record and
non-record reads of a file.
+If you perform a record read on a FILE with an encoding layer such as
+C<:encoding(latin1)> or C<:utf8>, you may get an invalid string as a
+result, may leave the FILE positioned between characters in the stream
+and may not be reading the number of bytes from the underlying file
+that you specified. This behaviour may change without warning in a
+future version of perl.
+
See also L<perlport/"Newlines">. Also see L</$.>.
Mnemonic: / delimits line boundaries when quoting poetry.