From owner-freebsd-bugs@freebsd.org Fri Jan 18 20:36:41 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 457D814818EA for ; Fri, 18 Jan 2019 20:36:41 +0000 (UTC) (envelope-from scootergrisen@gmail.com) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 411C7727B7 for ; Fri, 18 Jan 2019 20:36:40 +0000 (UTC) (envelope-from scootergrisen@gmail.com) Received: by mail-ed1-x52b.google.com with SMTP id y20so12144379edw.9 for ; Fri, 18 Jan 2019 12:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2wBNkx3O0DBT4kRrfqcZ/F3mTlGDdHWO44XfUzrslks=; b=icNFfg8724opNbWZsm46o3Fl8LvFWXD/Nlu9nLg2UU0Ug/Mubjuy6E0ffEckLhKl13 2+9h7+ngZ5T0+b9gaJo/et7lkpGroOhnhZLkUJhStEi4CImF/8fytpxH7p4HxnxPnGkV uC9EJ/q3fuO+UE3cT5uQbtCBfmpqYra+9cR1Q7lf7WXyqM6ZS2a6Dx83ZQhATk4uoG7p 9pzDJTCPQz9sXlnkD2gbScTS83wz/oxNQ1HH6dufRvEJmv3l5ZIttrBunZkKPnaKMVMt DfzJIMgNPkB7wnRvCclE+gmu+Epcw0rfjOS+0o5Q1CaD/YljY+XdJzeyolGBHzbk5C5Z r6ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2wBNkx3O0DBT4kRrfqcZ/F3mTlGDdHWO44XfUzrslks=; b=PkiIsFSobaqXH4YmB0nrM+ch7LDiCFefeCgZSzwYC/GV+CJIBKFgXYpgGKB2sYRWyG V24C/AuS3JArGTaoS3S7z9//MhLgLWT3+stuo5ktIM0Fpv5B1h4yk6J7VulpkZ6M0NF5 YxFzHXpucl2jQwcDliCkX/Lr6q+wZLoaab+ZviaQn1ApstDIU5L1VaxKjCNbysbHzY0L vYcEl0jt/sagfsc17iHx5zuvWao4ckoWS209fOE2fce4sPrXEQJ704A7nfjb7rWY33U2 RENas25ACz0PYFq0NOLbIGj+vmU0LFtT/Ny2Mh9JYeOW6Aph9eWdpxK9+e7db13ZJodt 4aLw== X-Gm-Message-State: AJcUukcLvPJ0PDQy1G0besgnxk3L033Nt6RMyhvBxZM3CZ77GbHhVPqa IMOd+VUBsGcg9PgD6g1+0iWpC8C5 X-Google-Smtp-Source: ALg8bN4tEt1vWqiT4SljK1LeAOlMvyZPs1OfUAqOs31ZZzfUlReZH6FDPU7ouGfR/kj5XA5UcOCiDg== X-Received: by 2002:a17:906:6dcb:: with SMTP id j11-v6mr15671640ejt.162.1547843798872; Fri, 18 Jan 2019 12:36:38 -0800 (PST) Received: from [10.0.0.2] (085081034038.dynamic.telenor.dk. [85.81.34.38]) by smtp.gmail.com with ESMTPSA id f31sm7695744eda.16.2019.01.18.12.36.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 12:36:38 -0800 (PST) Subject: =?UTF-8?Q?Re=3a_Help_with_getting_danish_keyboard_layout_to_work_co?= =?UTF-8?B?cnJlY3RseSAow6bDuMOlw4bDmMOFIGNoYXJhY3RlcnMp?= To: Polytropon Cc: freebsd-bugs@freebsd.org References: <9ba009af-855f-6e98-cf34-591766692988@gmail.com> <20190118115357.f38ec196.freebsd@edvax.de> From: scootergrisen Message-ID: <4641f70b-5964-e1a2-1d19-cb3956be884d@gmail.com> Date: Fri, 18 Jan 2019 21:36:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190118115357.f38ec196.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: da Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 411C7727B7 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=icNFfg87; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of scootergrisen@gmail.com designates 2a00:1450:4864:20::52b as permitted sender) smtp.mailfrom=scootergrisen@gmail.com X-Spamd-Result: default: False [-6.57 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-1.00)[-0.997,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-bugs@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.56)[ip: (-8.81), ipnet: 2a00:1450::/32(-2.10), asn: 15169(-1.83), country: US(-0.08)] 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 20:36:41 -0000 Den 18-01-2019 kl. 11:53 skrev Polytropon: > 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=233031 >> >> 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="de" > > set, and german umlauts öäü ÖÄÜ and Eszett ß 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="-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 æøåÆØÅ keys does not work correctly. > > See end of message for exegesis of "work". ;-) > > > >> It might be that the characters æøåÆØÅ are not in the default font. >> I want to try other fonts but i seems to be unable to change the font >> 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=0 >> >> But it still says this during boot: >> VT: text 80x25 > > And it probably doesn't work. ;-) > > > >> I would like æøåÆØÅ 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 å 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 å 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=sc > > 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 å and ø, just like ü and ß, only require 1 byte. :-) > > > > > PS. > Yes, I'm not a big fan of vt at the moment. :-) > So i tried different thinks now. Remember i test i VirtualBox. With kern.vty=sc i can get æøåÆØÅ to show correctly but only during login where it says "Login:". For some reason the terminal shows nothing after i log in when i try to type æøåÆØÅ. With kern.vty=vt i can type æøåÆ?Å (note the ? should have been Ø). After login i can also type æøåÆ?Å (note the ? should have been Ø) at the terminal. But i cant seem to change the font with vidfont when using kern.vty=vt to test if other fonts have Ø. /etc/ttys says xterm for ttyv0-8