develooper Front page | perl.perl5.porters | Postings from November 2005

possible [PATCH] for EBCDIC: IS_UTF8_CHAR()

Thread Next
Jarkko Hietaniemi
November 25, 2005 01:27
possible [PATCH] for EBCDIC: IS_UTF8_CHAR()
Message ID:
I felt bad for breaking EBCDIC platforms with my IS_UTF8_CHAR() speedup,
which Sadahiro-San promptly fixed by the following patch (which then
ended up as Perl change #25716):

So I decided to look into the matter, and attached is a patch that tries
to implement the IS_UTF8_CHAR() speedup also for (UTF-)EBCDIC platforms.

There's a BIG caveat here, though: I only did the patch "on paper", by
glaring at the UTF-EBCDIC Unicode Technical Report, since I no more have
access to an EBCDIC platform.

If someone on EBCDIC platform and with a habit of compiling and testing
Perl in there could apply the attached patch, and then run at least e.g.

./perl -Ilib t/op/pat.t
./perl -Ilib t/op/regexp.t
./perl -Ilib lib/utf8.t

to verify that my suggested patch doesn't introduce any new breakage.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About