From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 21:14:47 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0C82FC5; Wed, 13 Aug 2014 21:14:47 +0000 (UTC) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (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 A11E9208D; Wed, 13 Aug 2014 21:14:47 +0000 (UTC) Received: by mail-ig0-f174.google.com with SMTP id c1so11613026igq.1 for ; Wed, 13 Aug 2014 14:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=II7wkC2e97kFLCPZSwYa6ClChks58mIgEDwLebKaing=; b=E+PJNN4gMS6sQF6A0hYZTq+A79byFoTX2W6gvGzDnIoE+ljK2cMI61/EwnzJPfVC+u 2Rojq7DNIqGVjsCO4PjsW0fScjpQ/5zcss3n8zcx0Oa8K61DOUJlSZT0dOsrdbM5vsX4 qcAe8DGzhd/Dv7u9Y5v1VpjoLyUWTkcvzZS8bApA++wn3hCSydMEXJ/5DL41VpqlUHlW wBoEc+7Typ/c1KvnfbSmz2omky6E/rt50SQrycn3hX/dqPxLj556FYDNGmH2AAXj0NkR MefHl1kJ3c0WP2hlkN5WjkTEwXGKA9kIUx+NM6Fq6oxm+LGyw1yZo3trgDEM8+rrXlBj EHpA== X-Received: by 10.50.2.42 with SMTP id 10mr11013395igr.33.1407964487148; Wed, 13 Aug 2014 14:14:47 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.131.38 with HTTP; Wed, 13 Aug 2014 14:14:26 -0700 (PDT) In-Reply-To: <26160DA3-2BCA-434A-B3E3-F522490A70DF@cederstrand.dk> References: <53EA0EC2.2070601@freebsd.org> <53EA1E5A.5020707@FreeBSD.org> <53EA2D00.7010307@freebsd.org> <53EB0DA0.5000305@freebsd.org> <53EB5CA9.5@freebsd.org> <26160DA3-2BCA-434A-B3E3-F522490A70DF@cederstrand.dk> From: Ed Maste Date: Wed, 13 Aug 2014 17:14:26 -0400 X-Google-Sender-Auth: vNtnmX4SHPXZX5UourbY-GRbo78 Message-ID: Subject: Re: Keymap definitions for VT / NEWCONS To: Erik Cederstrand Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" , Aleksandr Rybalko X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2014 21:14:48 -0000 On 13 August 2014 09:47, Erik Cederstrand wrote= : >> >> I wonder if we should use this opportunity to rationalize the keyboard >> layout names, using two letter codes consistently (so dk.kbd). > > Sounds like a good idea. Just provide some kind of translation file inste= ad of bailing and using a default keymap. Trying to desperately remember th= e default US layout just to edit rc.conf and reboot is a pain. Preferably a= s a warning at boot time like 'keymap "danish.iso.kbd" is deprecated. The n= ew name is "da_DK.kbd". Please edit /etc/rc.conf'. Yeah, that's important. It should be straightforward for us to identify an old keymap variable (test that sysctl kern.vty=3Dvt and that /usr/share/vt/keymaps/${keymap} does not exist), and then just have a big switch statement of old and new names.