This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.c: Slight code simplification
authorKarl Williamson <khw@cpan.org>
Sat, 3 Oct 2015 20:07:43 +0000 (14:07 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 6 Oct 2015 15:33:43 +0000 (09:33 -0600)
commit15ca59302b4ab8afbcc002f9d3d491cf93143e7a
treec26835b158935c92c44daaadb67f4b37bdca1e1c
parente543b0e523030e57a0ea8b53843a91467cce4523
utf8.c: Slight code simplification

The changed code computes the code point to output in a warning.
However, the function it calls will output essentially the same warning
if called with the proper flag.  So, just do that.  The slight change in
the output is that the calling function adds the operation name, like
"in print" to the end of the message, so this changes causes a better
message to be output.  I did not change the handling of surrogates here,
because the warning messages are too different.
t/lib/warnings/utf8
utf8.c