diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-11-01 12:06:32 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-11-11 10:11:34 -0700 |
commit | 107160e2175acf35e27ea7b7af0c700f994f5437 (patch) | |
tree | 6766127186190810ec6eed356bcc2bbdd9f70c6b /pod | |
parent | b6ba113734f2321504b9a5e58f1b107f427927a3 (diff) | |
download | perl-107160e2175acf35e27ea7b7af0c700f994f5437.tar.gz |
toke.c: Fail on malformed UTF-8 in \N{} input
The handler for \N{} can be user-supplied and charnames itself
shouldn't have to worry about malformed input. This changes toke.c to
check for malformed input before calling the \N{} handler.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 0f98ee835d..ba30c179b5 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2702,6 +2702,14 @@ message. See also L<Encode/"Handling Malformed Data">. +=item Malformed UTF-8 character immediately after '%s' + +(F) You said C<use utf8>, but the program file doesn't comply with UTF-8 +encoding rules. The message prints out the properly encoded characters +just before the first bad one. If C<utf8> warnings are enabled, a +warning is generated that gives more details about the type of +malformation. + =item Malformed UTF-8 returned by \N (F) The charnames handler returned malformed UTF-8. |