toke.c: Fail on malformed UTF-8 in \N{} input
authorKarl Williamson <public@khwilliamson.com>
Thu, 1 Nov 2012 18:06:32 +0000 (12:06 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 11 Nov 2012 17:11:34 +0000 (10:11 -0700)
commit107160e2175acf35e27ea7b7af0c700f994f5437
tree6766127186190810ec6eed356bcc2bbdd9f70c6b
parentb6ba113734f2321504b9a5e58f1b107f427927a3
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.
pod/perldiag.pod
t/uni/parser.t
toke.c