From owner-freebsd-bugs@freebsd.org Fri Jan 18 10:54:08 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E38811497DEA for ; Fri, 18 Jan 2019 10:54:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B63A989A80 for ; Fri, 18 Jan 2019 10:54:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.226.69]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1N2m3G-1hE3Uw1joa-013ADa; Fri, 18 Jan 2019 11:53:58 +0100 Date: Fri, 18 Jan 2019 11:53:57 +0100 From: Polytropon To: scootergrisen Cc: freebsd-bugs@freebsd.org Subject: Re: Help with getting danish keyboard layout to work correctly =?ISO-8859-1?Q?(=E6=F8=E5=C6=D8=C5?= characters) Message-Id: <20190118115357.f38ec196.freebsd@edvax.de> In-Reply-To: <9ba009af-855f-6e98-cf34-591766692988@gmail.com> References: <9ba009af-855f-6e98-cf34-591766692988@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2+ulkZ43SBapITWfgVGU4kGG5ytr08RuI0kQHW/BS9h/lP/hUBa 9LxLCiTMLejzD3iZ68696YXmhZSFnFH18UuMizhwuwbsg/bj7u9etv6HqfrD0SiC0ccoCy5 X/idc3YhpTsQ/MqkLcneJATsLD3qVtQZh3swc2QeGDfb63G08IbETeAgog8TYx0xDvL+/MF cLL/dRUM/u2ojQGNNoFuQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NPg061Uv0X0=:EhrR08Ur/l8fxR/C3941/X UPY3ZbWACzBIR4cnJdU42APeWXrWbcB+bEIa6dTwWexAGvemPB6nDXz0S0k7F8S4rjaz2e+tr U1zwjFLr0hBH34I1H2L+EkLr5QLXYDQ9WBg5fLyqWN53DI2b/JVW7KIMlnKHkxdSquTqKXS3+ Bq/Ka95J5w612SWWzZwG2TVFxALvgJVO+jPi6j5jsxpoIUyMk0cHgEqfYII/uJjtwWT507uVQ dmhI7lxfryXxWwjqWItxUyF1WAJ1uOo4pe/jk6YlYUI8xGeLYXwQ4/g6nRrjoV9h2RUWV1qoS +5KjCxCXnNQqxWncxN7kTETtkK4K9Oa0YVLzYg7HNHQIa0el7WjcvbYGN39oRf9L2AFRzEFtH zVXcnSXAwCy5QwMkNzPQ7O33/FfWUPh1smJIyOjca1f1BIKu+8ckijdO0HrtAUkslejrm3L6P 63rqL/ynYTYz2L3vnI5/kK+ELgzoeigmNjmwy6GEPtmroryZc72znfdIpHkYkO7wHI78YRYIw 5I1huxQ3S/DprXrZrW4wS6G9Yj02zdt6xUEoDDxmhsEPibMhWmJzTy0o7b2cE7b6k3MOxVtmU HKMH8sPKbJ/oVJ0dyC8EWnsfFgPFGcAhyhQhXqzE5HgJdMbjhsaz5eVGkuxkgVrgWRyaIkGOE 4mFXstvPGN4ECv2L4JU7npG+F8dfmRM6+4iXBvpUDpjAxGfs2tzxgKWu2DpjorMfzrMg7L5nU u26s6HdBuz1zyLVb6z96EzpAxkbKo2eWAMT7Y1n2G5fyr9baVxqFdHJyHt4= X-Rspamd-Queue-Id: B63A989A80 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.82 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[mx00.schlund.de,mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.67)[-0.668,0]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[69.226.193.92.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.38)[0.376,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.73)[0.731,0]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.01)[ipnet: 212.227.0.0/16(-0.68), asn: 8560(0.63), country: DE(-0.01)] X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2019 10:54:08 -0000 On Fri, 18 Jan 2019 02:05:23 +0100, scootergrisen wrote: > Can someone help with this bug?: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233031 >=20 > I change to danish keyboard layout with kbdmap command in TTY. Which exact command do you use? Did you already think about using the equivalent /etc/rc.conf setting? For example, I have keymap=3D"de" set, and german umlauts =F6=E4=FC =D6=C4=DC and Eszett =DF are being used correctly. For you, setting "dk" should be fully sufficient. Due to vt font problems (unreadable and tiny on a 21" screen), I also have allscreens_flags=3D"-f gallant" which sets a different font at the end of the boot sequence. It's not much better than the default, still unreadable... > But =E6=F8=E5=C6=D8=C5 keys does not work correctly. See end of message for exegesis of "work". ;-) > It might be that the characters =E6=F8=E5=C6=D8=C5 are not in the default= font. > I want to try other fonts but i seems to be unable to change the font=20 > with vidfont command. First of all: Are you using vt as the console driver? This should be the default on recent FreeBSD versions. Verify that UTF-8 has been set. For comparison: % echo $LC_ALL de_DE.UTF-8 Stangely, I also get this: % echo $LANG de_DE.ISO8859-1 Sadly, I forgot about the precedence rules of $LANG and $LC_*. For testing, you can experiment with the language settings in your shell's initialization file. For the C shell, this is ~/.cshrc, and a logout - login cycle is a convenient way to change settings. In my opinion, you _should_ be fine with setenv LANG dk-DK.UTF-8 but you can try setenv LANG dk-DK.ISO8859-1 as well. Furthermore, just verify that /etc/ttys contains "xterm" as the terminal type for your virtual terminals; "cons25l1" which has worked before has been deprecated as with vt, there is no text mode anymore, all shiny graphics. :-) > I tried adding this in /boot/loader.conf: > hw.vga.textmode=3D0 >=20 > But it still says this during boot: > VT: text 80x25 And it probably doesn't work. ;-) > I would like =E6=F8=E5=C6=D8=C5 characters to work in the TTY by default. You need to pay attention to two things: 1. Are the keys accepted correctly? 2. Are the appropriate symbols printed? Those are two different aspects of the same "work" thing. :-) So even though aspect 1 might work correctly, i. e., when you press =E5 in an editor, the correct 2-byte sequence (due to UTF-8 default!) will be written to the file, it could happen that on the screen, you only see garbage, because the =E5 won't be displayed, and instead an "excuse" is printed on the screen. Sidenote: If you don't want to use X, try to use sc instead of vt. In /boot/loader.conf, set kern.vty=3Dsc In this case, you can also avoid using UTF-8 if you want, and instead use the regular western europe ISO-8859 character set, where =E5 and =F8, just like =FC and =DF, only require 1 byte. :-) PS. Yes, I'm not a big fan of vt at the moment. :-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...