This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: Fix EBCDIC-only bug
authorKarl Williamson <khw@cpan.org>
Tue, 18 Oct 2016 02:16:21 +0000 (20:16 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 18 Oct 2016 02:29:25 +0000 (20:29 -0600)
commitf70a2f5652ad183b5a2f30455d893099191d896d
treeb4fdcc16c4b6d9c70679a7a97bedb50a530d0c0f
parentb2873c1529bb5be58a32d6aa601af13f48046b58
op.c: Fix EBCDIC-only bug

We have no tests that this fails for, but on an EBCDIC machine, the
branches here are incorrect.  They are trying to determine if a UTF-8
representation will be larger than a non-UTF-8 representation for code
points < 256.  The proper test is if the code points are UTF-8
invariant.
op.c