aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-02-18 09:27:48 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-02-18 09:27:48 +0100
commit5c97c6df63afb5d143f6e7a1acbbd2a7528d227d (patch)
tree73b12ebb489f12c5818db863bd5a187f85f69e40 /scripts
parentf687d4518e97d541d4aed38bcd235e21ce812025 (diff)
downloadman-pages-5c97c6df63afb5d143f6e7a1acbbd2a7528d227d.tar.gz
convert_to_utf_8.sh: Fix buggy treatment of iso_8859-{11,13}.7
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
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