summaryrefslogtreecommitdiff
path: root/pod/perlunicode.pod
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2016-11-20 14:18:22 +0000
committerAaron Crane <arc@cpan.org>2017-01-05 19:54:07 +0000
commitd6c970c7e66d6f55dba7f13549143a2f4ba641c7 (patch)
treee080fbe38f9cd2868e8d0607e0840b2906633abc /pod/perlunicode.pod
parentfb387a96f609c00a517aa640d941f26f1e52f15a (diff)
downloadperl-d6c970c7e66d6f55dba7f13549143a2f4ba641c7.tar.gz
Fix the Unicode Bug in the range operator
Diffstat (limited to 'pod/perlunicode.pod')
-rw-r--r--pod/perlunicode.pod10
1 files changed, 10 insertions, 0 deletions
diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod
index 152c34bbe2..33e52b31b3 100644
--- a/pod/perlunicode.pod
+++ b/pod/perlunicode.pod
@@ -1814,6 +1814,16 @@ Prior to that, or outside its scope, no code points above 127 are quoted
in UTF-8 encoded strings, but in byte encoded strings, code points
between 128-255 are always quoted.
+=item *
+
+In the C<..> or L<range|perlop/Range Operators> operator.
+
+Starting in Perl 5.26.0, the range operator on strings treats their lengths
+consistently within the scope of C<unicode_strings>. Prior to that, or
+outside its scope, it could produce strings whose length in characters
+exceeded that of the right-hand side, where the right-hand side took up more
+bytes than the correct range endpoint.
+
=back
You can see from the above that the effect of C<unicode_strings>