grml-lang: execute kdb_mode 0.9.37
authorMichael Prokop <mika@grml.org>
Mon, 9 Apr 2007 11:04:59 +0000 (13:04 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 9 Apr 2007 11:04:59 +0000 (13:04 +0200)
debian/changelog
usr_bin/grml-lang

index 08cbd3c..e628759 100644 (file)
@@ -1,3 +1,10 @@
+grml-scripts (0.9.37) unstable; urgency=low
+
+  * grml-lang: execute 'kbd_mode -u' when running in utf8 mode
+    on plain console
+
+ -- Michael Prokop <mika@grml.org>  Mon,  9 Apr 2007 13:04:16 +0200
+
 grml-scripts (0.9.36) unstable; urgency=low
 
   * grml-setservices: execute update-rc.d commands only for present
index 2ded458..69926ea 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Fri Apr 21 02:02:54 CEST 2006 [mika]
+# Latest change: Mon Apr 09 13:04:40 CEST 2007 [mika]
 ################################################################################
 
 usage(){
@@ -32,7 +32,6 @@ if [ -z "$DISPLAY" ] ;then
     echo -e "\nDone."
   elif [ "$1" = "us" ] ; then
     echo 'Loading keymap us...'
-    # sudo loadkeys /etc/console/boottime.kmap.gz
     sudo loadkeys i386/qwerty/us-latin1.kmap.gz
     echo -e "\nDone."
   else echo "No valid parameter given.
@@ -40,6 +39,8 @@ if [ -z "$DISPLAY" ] ;then
 Notice: Use loadkeys on console and setxkbmap when running X for
 modifying keyboard layout. Adjust \$LANG and \$LC_ALL for setting locales." ; exit 1
   fi
+  # switch to unicode mode on console
+  case $LANG in *UTF-8) kbd_mode -u ; ;; esac
 else
   if [ $# = 0 ] ; then
       echo "Usage: $0 <language>"