This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change some warnings in utf8n_to_uvchr()
authorKarl Williamson <public@khwilliamson.com>
Thu, 2 Jan 2014 03:08:02 +0000 (20:08 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 2 Jan 2014 03:29:37 +0000 (20:29 -0700)
commitea5ced44af8b967bfce3763b11ba4714d4fcd154
treef6dbae186171fc57cfb675765a07ca8b2bc2eb9f
parent23dfa30831199ff0adfa3c42488e59e3df455e2c
Change some warnings in utf8n_to_uvchr()

This bottom level function decodes the first character of a UTF-8 string
into a code point.  It is discouraged from using it directly.  This
commit cleans up some of the warnings it can raise.  Now, tests for
malformations are done before any tests for other potential issues.  One
of those issues involves code points so large that they have never
appeared in any official standard (the current standard has scaled back
the highest acceptable code point from earlier versions).  It is
possible (though not done in CPAN) to warn and/or forbid these code
points, while accepting smaller code points that are still above the
legal Unicode maximum.  The warning message for this now includes the
code point if representable on the machine.  Previously it always
displayed raw bytes, which is what it still does for non-representable
code points.
ext/XS-APItest/t/utf8.t
pod/perldelta.pod
utf8.c
utf8.h