[Pkg-kbd-devel] Bug#486787: kbd: console is not set to UTF-8 mode

Stanislav Maslovski stanislav.maslovski at gmail.com
Wed Jun 18 06:10:29 UTC 2008


Package: kbd
Version: 1.14.1-3
Severity: important


After the upgrage from 1.14.1-2 to 1.14.1-3 the console is not set to UTF-8
anymore. This is because the recent changes in console-screen.kbd.sh. 

A patch is attached.

Hint: double check what you have done before uploading to the archive.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kbd depends on:
ii  console-common                0.7.77     basic infrastructure for text cons
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  lsb-base                      3.2-12     Linux Standard Base 3.2 init scrip

Versions of packages kbd recommends:
ii  console-data                  2:1.07-3   keymaps, fonts, charset maps, fall

-- no debconf information
-------------- next part --------------
diff -urN a/console-screen.kbd.sh b/console-screen.kbd.sh
--- a/console-screen.kbd.sh	2008-05-31 00:41:00.000000000 +0400
+++ b/console-screen.kbd.sh	2008-06-18 09:55:53.000000000 +0400
@@ -52,6 +52,14 @@
 fi
 
 # determine the system charmap
+if [ -f /etc/environment ] || [ -f /etc/default/locale ]
+then
+    for var in LANG LC_CTYPE LC_ALL
+    do
+        value=$(egrep "^[^#]*${var}=" /etc/environment /etc/default/locale 2>/dev/null | tail -n1 | cut -d= -f2)
+        eval $var=$value
+    done
+fi
 CHARMAP=`LANG=$LANG LC_ALL=$LC_ALL LC_CTYPE=$LC_CTYPE locale charmap 2>/dev/null`
 if [ "$CHARMAP" = "UTF-8" -a -z "$CONSOLE_MAP" ]
 then
@@ -70,15 +78,7 @@
 unicode_start_stop ()
 {
     vc=$1
-    if [ -f /etc/environment ] || [ -f /etc/default/locale ]
-    then
-        for var in LANG LC_CTYPE LC_ALL
-        do
-            value=$(egrep "^[^#]*${var}=" /etc/environment /etc/default/locale 2>/dev/null | tail -n1 | cut -d= -f2)
-            eval $var=$value
-        done
-    fi
-    if [ -n "$UNICODE_MODE" -a -z "`eval echo \$CONSOLE_MAP_vc$vc`" ]; then
+    if [ -n "$UNICODE_MODE" -a -z "`eval echo \\$CONSOLE_MAP_vc$vc`" ]; then
         action=unicode_start
     else
         action=unicode_stop


More information about the Pkg-kbd-devel mailing list