7 use Unicode::Normalize qw(NFC NFKC);
9 my $top = shift @ARGV || exit;
10 if (! -d $top) { exit; }
17 if ($str ne NFC($str)) {
20 if ($str ne NFKC($str)) {
28 my $target = shift @_;
30 print STDERR "checking '$target'\n";
31 opendir(my $dir, $target) || return $target;
32 my @entries = sort readdir($dir);
36 while (my $entry = shift @entries) {
37 next if ($entry =~ /^\.+$/);
39 print "'$target/$entry' can be composed\n";
42 if (-d "$target/$entry") {
48 while (my $entry = pop @dirs) {
49 checkdir("$target/$entry");