This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for 34213185
authorTony Cook <tony@develop-help.com>
Mon, 10 Dec 2012 23:22:35 +0000 (10:22 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 10 Dec 2012 23:22:35 +0000 (10:22 +1100)
I considered more detail here, but the discussion in the ticket
covers it.

pod/perldelta.pod

index b3996e5..02d94b7 100644 (file)
@@ -37,6 +37,17 @@ L</Selected Bug Fixes> section.
 
 =head1 Incompatible Changes
 
+=head2 readline() with C<$/ = \N> now reads N characters, not N bytes
+
+Previously, when reading from a stream with I/O layers such as
+C<encoding>, the readline() function, otherwise known as the C<< <> >>
+operator, would read I<N> bytes from the top-most layer. [perl #79960]
+
+Now, I<N> characters are read instead.
+
+There is no change in behaviour when reading from streams with no
+extra layers, since bytes map exactly to characters.
+
 XXX For a release on a stable branch, this section aspires to be:
 
     There are no changes intentionally incompatible with 5.XXX.XXX