Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] [PATCH] Change misleading kbd_mode message for XLATE mode
@ 2010-01-02 16:34 Michael Schutte
  0 siblings, 0 replies; only message in thread
From: Michael Schutte @ 2010-01-02 16:34 UTC (permalink / raw)
  To: kbd

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

The text said “default (ASCII) mode”, which is wrong in two respects:
XLATE isn’t limited to 7-bit ASCII, but works with various 8-bit
charsets, and the XLATE mode hasn’t been the kernel default for a while.
Thanks for the hint go to Samuel Thibault <sthibault@debian.org>.

The usage of kbd_mode together with grep in shell scripts might become
an issue with this commit, though cursory research with
codesearch.google.com shows only the BiCon project
<http://sourceforge.net/projects/bicon/>, which does “kbd_mode | grep -q
-i Unicode” and is thus unaffected.

Signed-off-by: Michael Schutte <michi@uiae.at>

---
 src/kbd_mode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kbd_mode.c b/src/kbd_mode.c
index b286678..fe4e233 100644
--- a/src/kbd_mode.c
+++ b/src/kbd_mode.c
@@ -89,7 +89,7 @@ main(int argc, char *argv[]){
 		printf(_("The keyboard is in mediumraw (keycode) mode\n"));
 		break;
 	      case K_XLATE:
-		printf(_("The keyboard is in the default (ASCII) mode\n"));
+		printf(_("The keyboard is in xlate (8-bit) mode\n"));
 		break;
 	      case K_UNICODE:
 		printf(_("The keyboard is in Unicode (UTF-8) mode\n"));
-- 
tg: (dab334b..) fixes/kbd_mode (depends on: upstream/master)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-02 16:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-02 16:34 [kbd] [PATCH] Change misleading kbd_mode message for XLATE mode Michael Schutte

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git