fix internatonal file names. Closes #8

This commit is contained in:
Dylan Araps
2020-08-05 23:40:06 +03:00
parent 2355810262
commit c9d6c52edf
+2 -2
View File
@@ -103,9 +103,9 @@ file_escape() {
# loop over string char by char
while c=${tmp%"${tmp#?}"}; do
case $c in
[[:print:]]) safe=$safe$c ;;
'') return ;;
*) safe=$safe\? ;;
[[:cntrl:]]) safe=$safe\? ;;
*) safe=$safe$c ;;
esac
tmp=${tmp#?}