aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/convert_to_utf_8.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/convert_to_utf_8.sh b/scripts/convert_to_utf_8.sh
index 787d9b4821..b8a5e83bae 100644
--- a/scripts/convert_to_utf_8.sh
+++ b/scripts/convert_to_utf_8.sh
@@ -45,13 +45,16 @@ for f in "$@"; do
mkdir -p "$new_dir"
fi
case "$basen" in
- iso_8859-11.7 | iso_8859-13.7)
- from_enc=$enc
- ;;
armscii-8.7 | cp1251.7 | iso_8859-*.7 | koi8-?.7)
- from_enc="${basen%.7}"
+
+ # iconv does not understand some encoding names that
+ # start "iso_", but does understand the corresponding
+ # forms that start with "iso-"
+
+ from_enc="$(echo $basen | sed 's/\.7$//;s/iso_/iso-/')"
;;
*)
+ echo "NULL TRANSFORM: $f"
from_enc=$enc
;;
esac