ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/util/gen_uts46data
(Generate patch)

Comparing AnyEvent/util/gen_uts46data (file contents):
Revision 1.1 by root, Tue Dec 15 05:49:13 2009 UTC vs.
Revision 1.3 by root, Wed Dec 16 01:22:36 2009 UTC

36 given ($type) { 36 given ($type) {
37 when ("disallowed") { 37 when ("disallowed") {
38 # nop 38 # nop
39 } 39 }
40 when (/mapped|deviation|ignored/) { 40 when (/mapped|deviation|ignored/) {
41 $map .= "\x01" if $type eq "deviation"; 41 $map = "\x01$map" if $type eq "deviation";
42 42
43 $imap .= "\x00" . chr . $map 43 $imap .= "\x00" . chr . $map
44 for $r1 .. $r2 || $r1; 44 for $r1 .. $r2 || $r1;
45 } 45 }
46 when ("valid") { 46 when ("valid") {
54} 54}
55 55
56open my $fh, ">lib/AnyEvent/Util/uts46data.pl" 56open my $fh, ">lib/AnyEvent/Util/uts46data.pl"
57 or die; 57 or die;
58binmode $fh, ":perlio"; 58binmode $fh, ":perlio";
59print $fh "# created by gen_uts46data\n"; 59print $fh "# autogenerated by util/gen_uts46data\n";
60 60
61utf8::encode $imap; 61utf8::encode $imap;
620 > index $imap, "\x02" # it's not supposed to be anywhere in there 620 > index $imap, "\x02" # it's not supposed to be anywhere in there
63 or die "imap contains \\x02"; 63 or die "imap contains \\x02";
64print $fh "\$uts46_imap = q\x02$imap\x00\x02;\n"; 64print $fh "\$uts46_imap = q\x02$imap\x00\x02;\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines