This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Warn on too high a code point if portable warn enabled
authorKarl Williamson <khw@cpan.org>
Sat, 11 Jan 2020 17:00:32 +0000 (10:00 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 23 Jan 2020 22:46:55 +0000 (15:46 -0700)
commitdc4a6683f83a4b8a2cbab4c2a31f790d4b77dc4e
tree04ca0ff3b37bd359b116126cf1a9dfefbc7f63c9
parent4f0ec493defafda25cdb173ade6d15861cd9a1db
Warn on too high a code point if portable warn enabled

"use warnings 'portable'" is supposed to warn if a value won't fit on a
32 bit platform.  For the UTF-8 conversion functions it wasn't.  This is
still overridden if the flags to these functions call for no warnings to
be generated, but this commit changes it so that if the portable
category is enabled, but not the non_unicode category, warnings are
generated for the code points that won't work on a 32-bit platform.
ext/XS-APItest/t/utf8_warn_base.pl
pod/perldelta.pod
pod/perldiag.pod
utf8.c