summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-02-18 20:12:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-18 20:12:02 +0000
commit5da9da9e9f46681684e0c487fd55df8db6f9de67 (patch)
tree6dfde242c1abd9880d2820c1acf95021bb4c9c78 /utf8.c
parente35c1634452152a39827656efdfed4d3e0d18c71 (diff)
downloadperl-5da9da9e9f46681684e0c487fd55df8db6f9de67.tar.gz
Fix for "[ID 20010213.005] utf8 + localized hash elems + 64 bits?"
The hash key got wrongly UTF8fied. p4raw-id: //depot/perl@8835
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/utf8.c b/utf8.c
index 918b669e13..13b953a9dc 100644
--- a/utf8.c
+++ b/utf8.c
@@ -121,12 +121,12 @@ Perl_uv_to_utf8(pTHX_ U8 *d, UV uv)
/*
=for apidoc A|STRLEN|is_utf8_char|U8 *s
-Tests if some arbitrary number of bytes begins in a valid UTF-8 character.
-The actual number of bytes in the UTF-8 character will be returned if it
-is valid, otherwise 0.
+Tests if some arbitrary number of bytes begins in a valid UTF-8
+character. Note that an ASCII character is a valid UTF-8 character.
+The actual number of bytes in the UTF-8 character will be returned if
+it is valid, otherwise 0.
-=cut
-*/
+=cut */
STRLEN
Perl_is_utf8_char(pTHX_ U8 *s)
{
@@ -168,8 +168,10 @@ Perl_is_utf8_char(pTHX_ U8 *s)
/*
=for apidoc A|bool|is_utf8_string|U8 *s|STRLEN len
-Returns true if first C<len> bytes of the given string form valid a UTF8
-string, false otherwise.
+Returns true if first C<len> bytes of the given string form a valid UTF8
+string, false otherwise. Note that 'a valid UTF8 string' does not mean
+'a string that contains UTF8' because a valid ASCII string is a valid
+UTF8 string.
=cut
*/