NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/57844: wscons doesn't support encoding=pl contrary to wskbd(4) man page



>Number:         57844
>Category:       kern
>Synopsis:       wscons doesn't support encoding=pl contrary to wskbd(4) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 08:50:00 +0000 2024
>Originator:     Bartlomiej Krawczyk
>Release:        10.0RC2
>Organization:
>Environment:
NetBSD netbsd.sol 10.0_RC2 NetBSD 10.0_RC2 (GENERIC) #0: Mon Jan  1 14:04:52 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
While trying to set encoding to wscons I get: 
netbsd# wsconsctl -k -w encoding=pl
wsconsctl: WSKBDIO_SETENCODING: Invalid argument

The same had been set by uncommenting the font and encoding in /etc/wscons.conf:
netbsd# grep -v "#" wscons.conf
font	latin2	-	16	iso	/usr/share/wscons/fonts/latin2.816
screen	1	-	vt100
screen	2	-	vt100
screen	3	-	vt100
screen	4	-	-
encoding pl

But the font seems to be loading just fine:
netbsd# wsfontload -l
Boldface 8x16
Boldface 16x32 16x32
latin2 8x16

wskbd(4) man page lists "pl" as a supported encoding and mentions pckbd(4) and ukbd(4) should support all of them. I'm using ukbd:

netbsd# dmesg | grep wskbd
[     3,042702] wskbd0 at ukbd0: console keyboard
[     3,052702] wskbd1 at ukbd1 mux 1
[     5,162707] wskbd2 at ukbd2 mux 1
[     7,662713] wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
[     7,682713] wskbd1: connecting to wsdisplay0
[     7,712714] wskbd2: connecting to wsdisplay0

Is "pl" encoding actually supported or am I doing something wrong?
Setting "uk", "us" or "de" encodings with wsconsctl works just fine:

netbsd# wsconsctl -k -w encoding=de
encoding -> de
netbsd# wsconsctl -k -w encoding=uk
encoding -> uk
netbsd# wsconsctl -k -w encoding=pl
wsconsctl: WSKBDIO_SETENCODING: Invalid argument
netbsd# wsconsctl -k -w encoding=us
encoding -> us

>How-To-Repeat:
Try setting encoding=pl in wscons on NetBSD 10.0RC2
>Fix:



Home | Main Index | Thread Index | Old Index