Menu

#7 "safe" filter -- Extended Latin characters removed

open
nobody
None
5
2010-07-24
2010-07-24
quipdog
No

Contrary to what is stated in the manpage of detox, the "safe" filter removes Extended Latin characters from filenames. The expected behavior, from my point of view, is for safe to only remove characters that cause problems for unix apps/scripting. Below is proof from a session I ran:

bbop@indus:~/Documents/tmp/detox-test2$ detox -V
detox 1.2.0
bbop@indus:~/Documents/tmp/detox-test2$ locale | grep LANG
LANG=en_US.utf8
bbop@indus:~/Documents/tmp/detox-test2$ uname -a
Linux indus 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux
bbop@indus:~/Documents/tmp/detox-test2$ cat /home/bbop/.detoxrc
sequence "default" {
safe;
};
bbop@indus:~/Documents/tmp/detox-test2$ ls
¡MåkĖ_mę_ŠąfĚ#(
bbop@indus:~/Documents/tmp/detox-test2$ detox -f ~/.detoxrc --dry-run ¡MåkĖ_mę_ŠąfĚ#\(
¡MåkĖ_mę_ŠąfĚ#( -> Mk_m_f#-

Lastly, a big thank you to all contributors to this tool!

Discussion


Log in to post a comment.