if ($list && ! $list_is_from_mktables) {
my $taint = substr($list,0,0); # maintain taint
- # Separate the extras from the code point list, and for
- # user-defined properties, make sure the latter are well-behaved
- # for downstream code.
- if ($user_defined) {
+ # Separate the extras from the code point list, and make sure
+ # user-defined properties and tr/// are well-behaved for
+ # downstream code.
+ if ($user_defined || $none) {
my @tmp = split(/^/m, $list);
my %seen;
no warnings;
# tr.t
+use utf8;
+
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
}
-plan tests => 130;
+plan tests => 131;
my $Is_EBCDIC = (ord('i') == 0x89 & ord('J') == 0xd1);
ok 1;
}
+{ # [perl #113584]
+
+ my $x = "Perlα";
+ $x =~ tr/αα/βγ/;
+ note $x;
+ is($x, "Perlβ", "Only first of multiple transliterations is used");
+}
+
1;