This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change meaning of UNI_IS_INVARIANT on EBCDIC platforms
authorKarl Williamson <khw@cpan.org>
Mon, 3 Aug 2015 03:20:44 +0000 (21:20 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 18 Sep 2015 19:26:12 +0000 (13:26 -0600)
commit2d1545e53e75b1c3ae16ad055ae011e2e015e0c3
treeb1046aff7670fc62d2bd7e563bd4220bd3261358
parent6916a94cde40f03bd33b3b63bf26ad8d48b399fd
Change meaning of UNI_IS_INVARIANT on EBCDIC platforms

This should make more CPAN and other code work without change.  Usually,
unwittingly, code that says UNI_IS_INVARIANT means to use the native
platform code values for code points below 256, so acquiesce to the
expected meaning and make the macro correspond.  Since the native values
on ASCII machines are the same as Unicode, this change doesn't affect
code running on them.

A new macro, OFFUNI_IS_INVARIANT, is created for those few places that
really do want a Unicode value.  There are just a few places in the Perl
core like that, which this commit changes.
toke.c
utf8.c
utf8.h
utfebcdic.h