From 8b4b6c863324f3d2cb5bea593da5ed4216d6c8ea Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 27 Dec 2017 18:34:35 -0700 Subject: lib/utf8.pm: Further clarification of UTF-8 flavor Commit 50a85cfe6c852deb0c2f738cb82006623052dc8e clarified that this module uses Perl's extended UTF-8, but missed the mention fixed in this commit. --- lib/utf8.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/utf8.pm') diff --git a/lib/utf8.pm b/lib/utf8.pm index 7bb65773b1..ea3c655586 100644 --- a/lib/utf8.pm +++ b/lib/utf8.pm @@ -255,7 +255,8 @@ C 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 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. -- cgit v1.2.1