Subject: misc/29657: /etc/wscons.conf should list all available keyboard maps
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <igor@string1.ciencias.uniovi.es>
List: netbsd-bugs
Date: 03/11/2005 11:01:00
>Number:         29657
>Category:       misc
>Synopsis:       /etc/wscons.conf should list all available keyboard maps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 11 11:01:00 +0000 2005
>Originator:     Igor Sobrado
>Release:        NetBSD 2.0
>Organization:
	University of Oviedo
>Environment:
System: NetBSD localhost 2.0 NetBSD 2.0 (GENERIC_LAPTOP) #0: Wed Dec 1 11:01:08 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	Karsten Kruse has observed that the full list of keyboard layouts
	differs from the one provided in /etc/wscons.conf comments.  This
	patch tries to update that file to list all keyboard layouts I am
	aware of.

	This patch indents too the last comment, to follow the indentation
	style followed in the rest of the file.  IMHO, it makes the last
	comment easier to read.

	BEWARE, there are some keyboard variants (nodead, declk, lk401,
	swapctrlcaps, dvorak, metaesc, iopener, machdep) that I do not
	know how to add to this file.  Any advice and a more qualified
	review of the patch will be useful.
>How-To-Repeat:
	There is a full listing of supported keyboard layouts:

	{ KB_USER,      "user" }, /* User-defined*/ \
	{ KB_US,        "us" },   /* US-English */ \
	{ KB_DE,        "de" },   /* German */ \
	{ KB_DK,        "dk" },   /* Danish */ \
	{ KB_IT,        "it" },   /* Italian */ \
	{ KB_FR,        "fr" },   /* French */ \
	{ KB_UK,        "uk" },   /* UK-English */ \
	{ KB_JP,        "jp" },   /* Japanese */ \
	{ KB_SV,        "sv" },   /* Swedish */ \
	{ KB_SV,        "fi" },   /* Finish */ \
	{ KB_NO,        "no" },   /* Norwegian */ \
	{ KB_ES,        "es" },   /* Spanish */ \
	{ KB_HU,        "hu" },   /* Hungarian */ \
	{ KB_PL,        "pl" },   /* Polish */ \
	{ KB_RU,        "ru" },   /* Russian */ \
	{ KB_SG,        "sg" },   /* Swiss German */ \
	{ KB_SF,        "sf" },   /* Swiss French */ \
	{ KB_PT,        "pt" },   /* Portugese */ \
	{ KB_UA,        "ua" },   /* Ukrainian */ \
	{ KB_BE,        "be" }    /* Belgian */

	and its variants:

	{ KB_NODEAD,    "nodead" }, \
	{ KB_DECLK,     "declk" }, \
	{ KB_LK401,     "lk401" }, \
	{ KB_SWAPCTRLCAPS, "swapctrlcaps" }, \
	{ KB_DVORAK,    "dvorak" }, \
	{ KB_METAESC,   "metaesc" }, \
	{ KB_IOPENER,   "iopener" }, \
	{ KB_MACHDEP,   "machdep" }

	An updated list of keyboard variants is available at:

	http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/dev/wscons/wsksymdef.h?rev=1.50&content-type=text/plain

>Fix:
--- wscons.conf	2005-03-11 11:38:25.000000000 +0100
+++ wscons.conf.proposed	2005-03-11 11:45:17.000000000 +0100
@@ -30,11 +30,12 @@
 
 # Select a kernel builtin keyboard map by uncommenting the following line and
 # altering the country code to your requirements
-# (choose from user, us, uk, de, dk, it, fr, jp, sv, no, es, pt).
+# (choose from user, us, uk, de, dk, it, fr, jp, sv, fi, no, es, hu, pl, ru,
+#  sg, sf, pt, ua, be).
 # See wsconsctl(8), pckbd(4), ukbd(4) etc. for more details.
 #encoding sv
 
 # Redefine individual keys from a file containing "keysym" and/or "keycode"
-# entries.
+#  entries.
 # See wsconsctl(8) for more details.
 #mapfile /usr/share/wscons/keymaps/pckbd.sv.svascii