I am trying to get better support for danish keyboard layout in TTY (or whatever its called, not X11).
In kbdmod i see 3 danish keyboard layouts to choose from (dk.kbd, dk.acc.kbd, dk.macbook.kbd).
But they don't seem to work correctly.
I'm not sure how much is the keyboard layout and how much is the characters not being in the font or whatever the problem is.
The following is tested with "dk.acc.kbd".
If i create a file in vi and type æøåÆØÅé it shows:
If i save the file and do cat filename it shows:
If i open it in ee it shows:
In the terminal (TTY):
I can only write accent keys (dead keys) like ´ and ¨ alone.
I can not combine them with another keys so i can not write éóëöêôèò etc.
Also i can not write æøåÆØÅ with any of the 3 danish keyboard layouts.
Nothing is written if i type æøåÆØÅ.
Testing FreeBSD-13.0-CURRENT-amd64.vhd (r339979)in VirtualBox.
I'm on 11.2, and have keymap="dk" in /etc/rc.conf and :charset=UTF-8:\ as well as :lang=en_US.UTF-8: added to the default class in /etc/login.conf
With these and vt/newcons as my console, I have pretty good unicode support on the default font, and every single character that I've been able to type using GNU Unifont (including double-wide CJK characters) works as well.
Can you please check that you're using vt as your console, or maybe just rejoin the BSD-DK irc channel, as I saw you asking there earlier but didn't catch you in time.
I tested the following in VirtualBox 6.0 with FreeBSD-12.0-RELEASE-amd64-disc1.iso.
In FreeBSD Installer - Keymap Selection
Select ->- Test dk.kbd keymap
When i type æøå i see nothing.
When i type ÆØÅ i see ~F~X~E.
If i type æ 33 times i see nothing but when i type æ one more time all of i sudden i see 33 æ's. I guess when the first æ is pushed beyond the screen something happens (like first byte of multibyte character is removed).
Typing æøå and abc after that give incorrect cursor movement. Sometimes the cursor stands still and sometimes it moves left and some times right.
I'm guessing it might be because abc is single byte and æøå is multibyte and then perhaps the installer or something does not support it.