This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/test.pl: Allow native/latin1 string conversions to work on utf8.
authorKarl Williamson <public@khwilliamson.com>
Sun, 24 Feb 2013 23:19:49 +0000 (16:19 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:55:55 +0000 (09:55 -0600)
commitae4842abe110ac794bc4928473bca35a7c3bc143
tree8b18954196af2130acf49dc5797a889e741a18ec
parent61bbb4863a849ae88b9ea67d187db62a76837553
t/test.pl: Allow native/latin1 string conversions to work on utf8.

These functions no longer have the hard-coded definitions in them,
but now end up resolving to internal functions, so that new encodings
could be added and these would automatically understand them.

Instead of using tr///, these now go character by character and
converting to/from ord, which is slower, but allows them to operate on
utf8 strings.

Peephole optimization should make these essentially no-ops on ascii
platforms.
t/test.pl