NetBSD Problem Report #6888
Received: (qmail 7561 invoked from network); 27 Jan 1999 11:04:35 -0000
Message-Id: <xofr9shrn7j.fsf@blubb.pdc.kth.se>
Date: 27 Jan 1999 12:04:32 +0100
From: joda@pdc.kth.se (Johan Danielsson)
To: gnats-bugs@gnats.netbsd.org
Subject: wsconsctl
>Number: 6888
>Category: bin
>Synopsis: wsconsctl
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: hannken
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 27 03:05:00 +0000 1999
>Closed-Date: Mon Feb 08 11:11:44 +0000 1999
>Last-Modified: Mon Feb 08 11:15:09 +0000 1999
>Originator: Johan Danielsson
>Release: 1999-01-25
>Organization:
>Environment:
System: NetBSD blubb.pdc.kth.se 1.3I NetBSD 1.3I (BLUBB) #8: Mon Jan 25 15:29:14 CET 1999 joda@blubb.pdc.kth.se:/usr/misc/src/netbsd/netbsd-current/src/sys/arch/i386/compile/BLUBB i386
>Description:
wsconsctl doesn't recognize digits, or unrecognized keysyms as
keysyms. In practice this means that you can't do (the equivalent of)
`wsconsctl -w $(wsconsctl map).'
>How-To-Repeat:
# wsconsctl map | grep exclam
keycode 2 = 1 exclam
# wsconsctl -w map+='keycode 2 = 1 exclam'
wsconsctl: parse: syntax error
>Fix:
Don't know the best way to fix this, but this is a possible solution.
--- keysym.c 1999/01/06 05:59:04 1.1.1.1
+++ keysym.c 1999/01/27 11:01:12
@@ -174,8 +174,12 @@
if (r != NULL)
return(r->value);
- else
+ else {
+ int ret;
+ if(sscanf(n, "unknown_%d", &ret) == 1)
+ return ret;
return(-1);
+ }
}
keysym_t
--- map_scan.l 1999/01/06 05:59:06 1.1.1.1
+++ map_scan.l 1999/01/27 11:01:12
@@ -73,7 +73,12 @@
return(T_KEYSYM);
}
-[a-zA-Z][a-zA-Z0-9_]* {
+[0-9]+/[ \t]*"=" {
+ yylval.ival = atoi(yytext);
+ return(T_NUMBER);
+ }
+
+[a-zA-Z0-9_]+ {
int i;
i = name2ksym(yytext);
@@ -85,11 +90,6 @@
return(T_KEYSYM_CMD_VAR);
else
return(T_KEYSYM_VAR);
- }
-
-[0-9]+ {
- yylval.ival = atoi(yytext);
- return(T_NUMBER);
}
. {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: hannken
State-Changed-When: Mon Feb 8 03:11:44 PST 1999
State-Changed-Why:
Fixed in tree.
Responsible-Changed-From-To: bin-bug-people->hannken
Responsible-Changed-By: hannken
Responsible-Changed-When: Mon Feb 8 03:11:44 PST 1999
Responsible-Changed-Why:
Fixed in tree.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.