From: Jaroslav Skarvada <jskarvad@redhat.com>
To: kbd@lists.altlinux.org
Subject: [kbd] kbd: loadkeys -d doesn't work
Date: Mon, 10 Oct 2011 03:48:07 -0400 (EDT)
Message-ID: <d6c36c03-81db-44da-88cc-bb16393aaad8@zmail07.collab.prod.int.phx2.redhat.com> (raw)
In-Reply-To: <4e91987dc0f88_cf8efca43c177@hb3xhf1.ch3.sourceforge.com.tmail>
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
The loadkeys -d doesn't work any more (kbd-1.15.3).
According to man and previous behaviour, I think it
should work. Possible fix is attached
regards
Jaroslav
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: kbd-1.15.3-fix-load-defkeymap.patch --]
[-- Type: text/x-patch; name=kbd-1.15.3-fix-load-defkeymap.patch, Size: 669 bytes --]
diff -up kbd-1.15.3/src/loadkeys.c.orig kbd-1.15.3/src/loadkeys.c
--- kbd-1.15.3/src/loadkeys.c.orig 2011-05-07 22:33:42.000000000 +0200
+++ kbd-1.15.3/src/loadkeys.c 2011-10-09 14:34:52.533549215 +0200
@@ -2958,7 +2958,7 @@ int main(int argc, char *argv[])
close(fd);
}
- for (i = optind; argv[i]; i++) {
+ for (i = optind; argv[i] || optd; i++) {
FILE *f;
char *ev;
@@ -2974,6 +2974,7 @@ int main(int argc, char *argv[])
if (optd) {
/* first read default map - search starts in . */
optd = 0;
+ i--;
if ((f = findfile(DEFMAP, dirpath, suffixes)) == NULL) {
fprintf(stderr, _("Cannot find %s\n"), DEFMAP);
exit(EXIT_FAILURE);
next parent reply other threads:[~2011-10-10 7:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 7:48 ` Jaroslav Skarvada [this message]
2011-10-21 10:42 ` Alexey Gladkov
2011-10-21 14:56 ` Jaroslav Skarvada
2011-10-21 22:54 ` Alexey Gladkov
2011-10-22 11:35 ` Jaroslav Skarvada
2011-10-22 19:52 ` Alexey Gladkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d6c36c03-81db-44da-88cc-bb16393aaad8@zmail07.collab.prod.int.phx2.redhat.com \
--to=jskarvad@redhat.com \
--cc=kbd@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Linux console tools development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
public-inbox-index kbd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.kbd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git