projects
/
lab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add 'graph' for gitconfig
[lab.git]
/
misc
/
findcombinable.pl
diff --git
a/misc/findcombinable.pl
b/misc/findcombinable.pl
index
825ad39
..
667d6bd
100755
(executable)
--- a/
misc/findcombinable.pl
+++ b/
misc/findcombinable.pl
@@
-19,7
+19,7
@@
sub match {
$str = $utf8->decode($str);
if ($str ne NFC($str)) {
$str = $utf8->decode($str);
if ($str ne NFC($str)) {
- return 1;
+ return $utf8->encode(NFC($str));
}
return '';
}
return '';
@@
-35,8
+35,8
@@
sub checkdir {
my @dirs;
while (my $entry = shift @entries) {
my @dirs;
while (my $entry = shift @entries) {
- if (match($entry)) {
- print "'$target/$entry' can be composed\n";
+ if (my $composed = match($entry)) {
+ print "'$target/$entry' can be composed to '$composed'\n";
next;
}
if (-d "$target/$entry") {
next;
}
if (-d "$target/$entry") {