From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FH_DATE_PAST_20XX autolearn=no version=3.2.5 From: Michael Schutte To: kbd@lists.altlinux.org Date: Sat, 2 Jan 2010 17:34:40 +0100 Message-Id: <1262450081-7229-1-git-send-email-michi@uiae.at> X-Mailer: git-send-email 1.6.5 Subject: [kbd] [PATCH] Change misleading kbd_mode message for XLATE mode X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 16:35:05 -0000 Archived-At: List-Archive: 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 . 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 , which does “kbd_mode | grep -q -i Unicode” and is thus unaffected. Signed-off-by: Michael Schutte --- 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)