Bug#241117: base-config: A patch for termwrap to work with koi8-r
Package: base-config
Version: 2.17
Severity: normal
Tags: patch
Attached is a patch for termwrap that enables russian installation in
koi8-r encoding.
-- System Information:
Architecture: i386 (i686)
Kernel: Linux 2.4.23
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R
--- termwrap.orig 2004-03-28 20:14:35.000000000 +0400
+++ termwrap 2004-03-30 18:19:00.000000000 +0400
@@ -277,7 +277,13 @@
# Russian
case $TERMINAL in
console)
- # What's do we must do?
+ if [ -x /usr/bin/cyr ]; then
+ /usr/bin/cyr -s uni -t 16 -e koi8-r --ttys=/dev/tty1 ru_ms ctrl_shift_toggle
+ else
+ # Don't try to install in russian withour cyrrilic support on console
+ LANG=C
+ LC_ALL=C
+ fi
;;
esac
;;
@@ -317,7 +323,7 @@
# Fallback to C
case $ENCODING in
- ISO-8859-1|ISO-8859-2|ISO-8859-13|ISO-8859-15)
+ ISO-8859-1|ISO-8859-2|ISO-8859-13|ISO-8859-15|KOI8-R)
# Nothing to do
;;
*)
@@ -330,7 +336,7 @@
$@
case $ENCODING in
-ISO-8859-1)
+ISO-8859-1|KOI8-R)
# Nothing to do, using default config
;;
ISO-8859-2)
Reply to: