Subject: port-macppc/15438: # wsconsctl -w encoding=jp gets WSKBDIO_SETENCODING: Invalid argument
To: None <gnats-bugs@gnats.netbsd.org>
From: None <makoto@ki.nu>
List: netbsd-bugs
Date: 01/31/2002 15:15:21
>Number: 15438
>Category: port-macppc
>Synopsis: wsconsctl -w encoding=jp -> Invalid argument
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-macppc-maintainer
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jan 30 22:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Makoto Fujiwara
>Release: <NetBSD-current source date> 1.5.2 and any -current within a year
>Organization:
www.ki.nu
>Environment:
System: NetBSD u 1.5ZA NetBSD 1.5ZA (GENERIC-insecure) #0: Thu Jan 17 16:01:56 JST 2002 makoto@u:/amd/ibook366.ki.nu./export/20011220/sys/arch/macppc/compile/GENERIC-insecure macppc
Architecture: powerpc
Machine: macppc
>Description:
just typing following line gets error message as:
# wsconsctl -w encoding=jp
wsconsctl: WSKBDIO_SETENCODING: Invalid argument
This is because jp map is not defined yet.
>How-To-Repeat:
On the macppc machine which /dev/wscons configured, type above command
>Fix:
apply followng fix on the file:
syssrc/sys/arch/macppc/dev/akbdmap.h
--- akbdmap.h-1.3 Tue Jul 10 21:01:26 2001
+++ akbdmap.h Thu Jan 31 15:02:08 2002
@@ -169,13 +169,26 @@
KC(58), KS_Alt_R, /* Option */
};
-#if 0
static const keysym_t akbd_keydesc_jp[] = {
/* pos command normal shifted */
- KC(42), KS_grave, KS_asciitilde,
+ KC(19), KS_2, KS_quotedbl,
+ KC(22), KS_6, KS_ampersand,
+ KC(24), KS_asciicircum, KS_asciitilde,
+ KC(25), KS_9, KS_parenright,
+ KC(26), KS_7, KS_apostrophe,
+ KC(27), KS_minus, KS_equal,
+ KC(28), KS_8, KS_parenleft,
+ KC(29), KS_0,
+ KC(30), KS_bracketleft, KS_braceleft,
+ KC(33), KS_at, KS_grave,
+ KC(39), KS_colon, KS_asterisk,
+
+ KC(41), KS_semicolon, KS_plus,
+ KC(42), KS_bracketright,KS_braceright,
+
KC(93), KS_backslash, KS_bar,
+ KC(94), KS_underscore,
};
-#endif
#define KBD_MAP(name, base, map) \
{ name, base, sizeof(map)/sizeof(keysym_t), map }
@@ -183,6 +196,7 @@
static const struct wscons_keydesc akbd_keydesctab[] = {
KBD_MAP(KB_US, 0, akbd_keydesc_us),
KBD_MAP(KB_FR, KB_US, akbd_keydesc_fr),
+ KBD_MAP(KB_JP, KB_US, akbd_keydesc_jp),
{0, 0, 0, 0}
};
>Release-Note:
>Audit-Trail:
>Unformatted: