Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 1998 10:41:17 +0200 (CEST)
From:      xcejka00@dcse.fee.vutbr.cz
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/6522: "kbdcontrol -l uk.iso.kbd" fails
Message-ID:  <199805050841.KAA01006@pccejkar.dcse.fee.vutbr.cz>

next in thread | raw e-mail | index | archive | help

>Number:         6522
>Category:       bin
>Synopsis:       "kbdcontrol -l uk.iso.kbd" fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  5 01:40:01 PDT 1998
>Last-Modified:
>Originator:     Rudolf Cejka
>Organization:
FEE TU Brno, Czech Republic
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	It does not matter, blankly -current

>Description:

	Hmm, kbdmap command makes an offer to me to use
		keymap=uk.iso.kbd
	But when when I'm trying "kbdcontrol -l uk.iso.kbd", kbdcontrol
	cannot find the file. (uk.iso.kbd is only example, kbdcontrol
	fails in all cases.

>How-To-Repeat:

	Simply type "kbdcontrol -l uk.iso.kbd". kbdcontrol cannot find
	file uk.iso.kbd in /usr/share/syscons/keymaps:

	# ls -l /usr/share/syscons/keymaps/uk.iso.kbd 
	-r--r--r--  1 bin ... ... /usr/share/syscons/keymaps/uk.iso.kbd


>Fix:
	
	Here is a small patch inspired by vidcontrol:

	--- kbdcontrol.c	Tue May  5 10:31:07 1998
	***************
	*** 650,657 ****
	  	FILE	*fd;
	  	int	i;
	  	char	*name, *cp;
	! 	char	*prefix[]  = {"", "", KEYMAP_PATH, NULL};
	! 	char	*postfix[] = {"", ".kbd", ".kbd"};
	  
	  	for (i=0; prefix[i]; i++) {
	  		name = mkfullname(prefix[i], opt, postfix[i]);
	--- 650,657 ----
	  	FILE	*fd;
	  	int	i;
	  	char	*name, *cp;
	! 	char	*prefix[]  = {"", "", KEYMAP_PATH, KEYMAP_PATH, NULL};
	! 	char	*postfix[] = {"", ".kbd", "", ".kbd"};
	  
	  	for (i=0; prefix[i]; i++) {
	  		name = mkfullname(prefix[i], opt, postfix[i]);
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805050841.KAA01006>