On Sun, Nov 15, 2020 at 10:52:28AM +0000, henkjan gersen wrote:
> >Synopsis: BackSpace does not delete some symbols typed with AltGr on the 
> >console/terminal
> >Category: user
> >Environment:
>     System      : OpenBSD 6.8
>     Details     : OpenBSD 6.8 (GENERIC) #97: Sun Oct  4 18:00:46 MDT 2020
>              dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> 
>     Architecture: OpenBSD.amd64
>     Machine     : amd64
> 
> >Description:
> On a freshly installed OpenBSD 6.8 on a Lenovo T495s  I noticed that I
> am unable to delete
> some of the symbols typed with the AltGr key when working on the
> console. For clarity: as I
> am not in X this is NOT an Xorg/Xenocara related problem.
> 
> Looking at the symbols that I can't delete and comparing them to the
> output of "wsconsctl
> keyboard.map" shows that the symbols that I can't delete are ones that
> have a symbol
> specified in the keymap for that layer. As an example: the uk keymap defines
> 
> keycode 2 = 1 exclam plusminus exclamdown
> 
> So holding AltGr when hitting 1 generates a plusminus as expected.
> That symbol appears when
> typed, but can't be deleted using backspace.
> 
> Symbols on alpha-keys that have no symbol specified for the AltGr in
> the keymap can be deleted.
> 
> All of this is with a clean install, so no customised config files
> beyond setting up the network.
> 
> >How-To-Repeat:
> I use the UK keyboard layout, but the same problem also occurs with US
> layout. To reproduce
> hold AltGr and type symbols using the number-row when not in X. Trying
> to delete the typed
> symbols using BackSpace should fail to delete these symbols.

Sounds like you're creating UTF-8 multi-byte characters.
The console does not have UTF-8 support. 

> >Fix:
> Nothing immediately obvious to me beyond just using X.

At present, UTF-8 only works in X.

Reply via email to