- Timestamp:
- Jan 25, 2013 12:11:26 AM (12 years ago)
- Branches:
- master, trunk
- Children:
- 0e3de64
- Parents:
- 89fbc5d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/findcombinable.pl
r89fbc5d re4e7407 5 5 use utf8; 6 6 7 use Encode; 7 8 use Unicode::Normalize qw(NFC NFKC); 9 binmode STDOUT => 'encoding(utf8)'; 10 binmode STDERR => 'encoding(utf8)'; 8 11 9 12 my $top = shift @ARGV || exit; 10 13 if (! -d $top) { exit; } 14 15 my $utf8 = find_encoding("utf8"); 16 $top = $utf8->decode($top); 11 17 12 18 checkdir($top); … … 16 22 17 23 if ($str ne NFC($str)) { 18 return 1;19 }20 if ($str ne NFKC($str)) {21 24 return 1; 22 25 } … … 36 39 while (my $entry = shift @entries) { 37 40 next if ($entry =~ /^\.+$/); 41 $entry = $utf8->decode($entry); 38 42 if (match($entry)) { 39 43 print "'$target/$entry' can be composed\n";
Note: See TracChangeset
for help on using the changeset viewer.