Permalink
Browse files

lib/utf8.pm: Further clarification of UTF-8 flavor

Commit 50a85cf clarified that this
module uses Perl's extended UTF-8, but missed the mention fixed in this
commit.
  • Loading branch information...
khwilliamson committed Dec 28, 2017
1 parent d6c0a90 commit 8b4b6c863324f3d2cb5bea593da5ed4216d6c8ea
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/utf8.pm
View
@@ -255,7 +255,8 @@ C<utf8::upgrade($string)> unconditionally.
=item * C<$flag = utf8::valid($string)>
[INTERNAL] Test whether I<$string> is in a consistent state regarding
UTF-8. Will return true if it is well-formed UTF-8 and has the UTF-8 flag
UTF-8. Will return true if it is well-formed Perl extended UTF-8 and has the
UTF-8 flag
on B<or> if I<$string> is held as bytes (both these states are 'consistent').
Main reason for this routine is to allow Perl's test suite to check
that operations have left strings in a consistent state.

0 comments on commit 8b4b6c8

Please sign in to comment.