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
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 2 deletions

4
shfm
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#?}