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

possible [PATCH] for EBCDIC: IS_UTF8_CHAR()

Thread Next
From:
Jarkko Hietaniemi
Date:
November 25, 2005 01:27
Subject:
possible [PATCH] for EBCDIC: IS_UTF8_CHAR()
Message ID:
4386D8E6.3080704@gmail.com
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):

http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-10/msg00178.html

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About