diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-11-04 15:02:17 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-05 16:11:42 -0700 |
commit | a44f4b74513a213052e4f78beb022f158efcf1a1 (patch) | |
tree | 2f199cfc762a9b4f0e70cd5691836c84bf7329ed /pod/perlhack.pod | |
parent | 68bb50b07e1a4db5feeb6f3d6d69e055a27e2aee (diff) | |
download | perl-a44f4b74513a213052e4f78beb022f158efcf1a1.tar.gz |
utf8_heavy.pl: Make callable during Perl's compilation
It's possible for this to be called during the compilation phase of Perl
by miniperl before the Unicode tables have been built. This patch
checks if dynamic loading is available, and if not evals the require
needed to gain access to the tables. If it succeeds, the tables have
been built; if it doesn't, instead of dying, just return empty tables,
as currently the things being built don't require information outside
the ASCII range, which is hard-coded into Perl without needing the
tables.
In the future, that may not be the case, and then likely the tables will
have to be shipped with Perl, and make regen would be done to rebuild
them.
Diffstat (limited to 'pod/perlhack.pod')
0 files changed, 0 insertions, 0 deletions