From owner-freebsd-current@FreeBSD.ORG Sun Jul 6 13:34:41 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96303131 for ; Sun, 6 Jul 2014 13:34:41 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 134D42279 for ; Sun, 6 Jul 2014 13:34:40 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id c11so2176717lbj.27 for ; Sun, 06 Jul 2014 06:34:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=dV8xix7Lv+seD+1Np8lE+1Z8C7ggIar8KrIsaedt7BU=; b=brwe+DH2wRBePzrFt6zqNJSsU4v/QxXR8LZRpfgUnUw2aY5TwnWiOlxHjsGmx/jH72 2QkInhMXT/Jbd/VT/7/tJeaVCxfBv37U2DbAL7OtZpHHJggi9vaWZ0k2bZ66H3tV5nOV e9ZRJg48JBl8R8P8hrKnqUusz1qMnRlQPVucb44veA/xD3RR+SDvRQ3wjFtmYMaZ5fKK ziXB0C6lt+zPFg8bXI5hKIsnJhL+RYcxLPqlrMmex8b/XMml9mGRCvKfeC7X+RFWawhR eM2Wc6SrQX7/NOqkEt7mowOtTq3V8vee2rE2HEUzZf+/Op/7dKILZA/a3rxPOr0HfHzs QbFg== X-Gm-Message-State: ALoCoQmG9Q0FN7xoE0KbL0CVwwxLcIOZ2+a1k0XNyVoYP8mXUos/Eitpiqq8e6sSAXBYCpA3BVwW X-Received: by 10.112.60.5 with SMTP id d5mr17611669lbr.26.1404653672788; Sun, 06 Jul 2014 06:34:32 -0700 (PDT) Received: from raynote.ddteam.net (191-158-133-95.pool.ukrtel.net. [95.133.158.191]) by mx.google.com with ESMTPSA id tv3sm48246497lbb.49.2014.07.06.06.34.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 06:34:31 -0700 (PDT) Date: Sun, 6 Jul 2014 16:33:00 +0300 From: Aleksandr Rybalko To: Trond =?KOI8-U?Q?Endrestol?= Subject: Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165 Message-Id: <20140706163300.88c4e432f5c06c2767a2ce2d@ddteam.net> In-Reply-To: References: <20140703124838.ab79fb8e394addbb92b082ca@ddteam.net> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 8bit Cc: FreeBSD current , Ed Maste X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 13:34:41 -0000 On Thu, 3 Jul 2014 18:20:59 +0200 (CEST) Trond Endrestol wrote: > On Thu, 3 Jul 2014 17:50+0200, Trond Endrestol wrote: > > > On Thu, 3 Jul 2014 12:48+0300, Aleksandr Rybalko wrote: > > > > > On Thu, 3 Jul 2014 08:31:45 +0200 (CEST) > > > Trond Endrestol wrote: > > > > > > > On Thu, 3 Jul 2014 08:21+0200, Trond Endrestol wrote: > > > > > > > > > On Wed, 2 Jul 2014 17:37-0400, Ed Maste wrote: > > > > > > > > > > > On 2 July 2014 17:09, Trond Endrestol > > > > > > wrote: > > > > > > > On Wed, 2 Jul 2014 16:43-0400, Ed Maste wrote: > > > > > > > > > > > > > >> On 2 July 2014 14:51, Trond Endrestol > > > > > > >> wrote: > > > > > > >> > Hi, > > > > > > >> > > > > > > > >> > Is it just me or is there something wrong with vidcontrol(1) in > > > > > > >> > base/head, amd64, sc console, r268165? > > > > > > >> > > > > > > >> Should be fixed in r268175. > > > > > > > > > > > > > > Looks good, thanks. > > > > > > > > > > > > Thanks for the report, and sorry for the trouble. > > > > > > > > > > No trouble at all, I follow base/head (and stable/{8,9,10}) on various > > > > > VMs at home only to know what's ahead. ;-) > > > > > > > > > > Since neither kbdcontrol(1) nor I mind using the old syscons keymap > > > > > file norwegian.iso.kbd, wouldn't it be nice if kbdcontrol(1), while in > > > > > vt(4) mode, would search for keymaps in /usr/share/syscons/keymaps > > > > > after searching for them in /usr/share/vt/keymaps? > > > > > > > > > > E.g.: > > > > > > > > > > Index: usr.sbin/kbdcontrol/kbdcontrol.c > > > > > =================================================================== > > > > > --- usr.sbin/kbdcontrol/kbdcontrol.c (revision 268203) > > > > > +++ usr.sbin/kbdcontrol/kbdcontrol.c (working copy) > > > > > @@ -804,7 +804,7 @@ > > > > > char *postfix[] = {blank, dotkbd, NULL}; > > > > > > > > > > if (is_vt4()) > > > > > - prefix[2] = vt_keymap_path; > > > > > + prefix[1] = vt_keymap_path; > > > > > cp = getenv("KEYMAP_PATH"); > > > > > if (cp != NULL) > > > > > asprintf(&(prefix[0]), "%s/", cp); > > > > > > > > Or maybe this patch is even better, as it leaves one instance of blank > > > > in the array when KEYMAP_PATH is set in the environment, at prefix[1], > > > > and sadly add a redundant blank at prefix[2] when KEYMAP_PATH is not > > > > set in the environment. > > > > > > > > Index: usr.sbin/kbdcontrol/kbdcontrol.c > > > > =================================================================== > > > > --- usr.sbin/kbdcontrol/kbdcontrol.c (revision 268203) > > > > +++ usr.sbin/kbdcontrol/kbdcontrol.c (working copy) > > > > @@ -800,7 +800,7 @@ > > > > char *name, *cp; > > > > char blank[] = "", keymap_path[] = KEYMAP_PATH; > > > > char vt_keymap_path[] = VT_KEYMAP_PATH, dotkbd[] = ".kbd"; > > > > - char *prefix[] = {blank, blank, keymap_path, NULL}; > > > > + char *prefix[] = {blank, blank, blank, keymap_path, NULL}; > > > > char *postfix[] = {blank, dotkbd, NULL}; > > > > > > > > if (is_vt4()) > > > > > > > > For now I could just stick to using an absolute pathname for keymap= > > > > in /etc/rc.conf. > > > > > > Hi Trond, > > > > > > It is not so good idea to fallback to syscons keymaps, because vt(4) > > > works with Unicode only char codes. So fallback will make input with > > > non-English characters - unreadable. > > > > > > Instead of that fallback you can convert keymaps you can verify by > > > follow instructions in [1], then please check it and send it to list, > > > so me or someone else will commit it. > > > > > > Thank you for reports! > > > > > > 1. > > > http://raybsd.blogspot.com/2013/10/newcons-international-keyboard-input.html > > > > I tried to follow the instructions, but I honestly don't see any > > difference. > > > > I downloaded uakbd2ukbd.pl.gz, decompressed the file, installed > > converters/p5-Text-Iconv, copied /usr/share/syscons/norwegian.iso.kbd > > to cwd, and ran: > > > > ./uakbd2ukbd.pl norwegian.iso.kbd ISO-8859-1 > norwegian.utf8.kbd > > > > Running diff -u norwegian.* shows absolutely no difference. > > > > Is it pilot error on my part? > > Yes, perhaps it was pilot error. > > Running: > > ./uakbd2ukbd.pl norwegian.iso.kbd ISO-8859-15 > norwegian.utf8-15.kbd > > produced differences when compared to norwegian.iso.kbd. > > The keyboard checked out on all three occasions, with the original > norwegian.iso.kbd, with the norwegian.utf8.kbd, and with the > norwegian.utf8-15.kbd. > > -- > +-------------------------------+------------------------------------+ > | Vennlig hilsen, | Best regards, | > | Trond Endrestol, | Trond Endrestol, | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gjovik Technical College, Norway, | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +-------------------------------+------------------------------------+ Hi, so if i get it right, you get expected results, right? If so, please check key combinations which is different, to get correct results. And if all is ok, send me new maps please. If it is not correct, let as know what is wrong. Thanks a lot! WBW -- Aleksandr Rybalko