Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37815255
en ru br
ALT Linux repositórios
S:2.6.1-alt1
5.0: 1.14.1.20081023-alt1
4.1: 1.13.99-alt5.M41.1
4.0: 1.12.1-alt2
3.0: 1.12-alt2.1
+updates:1.12-alt2.2

Group :: Terminais
RPM: kbd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: unicode_start_breaks_X.diff
Download


Index: kbd/src/unicode_stop
===================================================================
--- kbd.orig/src/unicode_stop
+++ kbd/src/unicode_stop
@@ -1,4 +1,18 @@
 #!/bin/sh
+
+if [ ! -e /proc/self/fd/0 ] ; then
+   echo "Won't set ascii mode: Can't determine console type;" >&2
+   echo " Please ensure that /proc is mounted." >&2
+   exit 1
+fi
+
+readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console
+if [ $? -eq 1 ]; then
+    echo  "Won't set ascii mode: not a VT." >&2
+    exit 1
+fi
+
 # stop unicode
 kbd_mode -a
+
 echo -n -e '\033%@'
Index: kbd/src/unicode_start
===================================================================
--- kbd.orig/src/unicode_start
+++ kbd/src/unicode_start
@@ -1,6 +1,19 @@
 #!/bin/sh
 # Enables Unicode processing in the current console.
 #
+
+if [ ! -e /proc/self/fd/0 ] ; then
+   echo "Won't set unicode mode: Can't determine console type;" >&2
+   echo " Please ensure that /proc is mounted." >&2
+   exit 1
+fi
+
+readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console
+if [ $? -eq 1 ]; then
+    echo  "Won't set unicode mode: not a VT." >&2
+    exit 1
+fi
+
 # 1. The input side: the keyboard driver.
 
 # Set the keyboard driver in Unicode mode. (Default is ASCII mode.)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009