This short article aims to help people that want to use ISO8859-2 character encoding in NetBSD/i386's wscons(4) console. It is very brief, so if you understand Slovak language, I recommend you to read NetBSD Slovak & Czech HOWTO instead. All files you will need for ISO8859-2-ing your console in are in this tarball: http://ovecka.be/~lkundrak/netbsd-sk_cz-howto/netbsd-sk_cz-howto.tar
To set iso8859-2 fonts on NetBSD/i386 wscons(4) console you basically need to do this:
font latin2 - 16 iso /usr/share/wscons/fonts/isolat2.816
LAST=4 # provided that you have 5 virtual terminals configured (0-4)
for term in $(/usr/bin/seq 0 $LAST)
do
/sbin/wsconsctl -f /dev/ttyE$term -d -w font=latin2
done
# /etc/rc.d/wscons forcerestart # sh /etc/rc.local
For complete iso8859-2 input from pckbd(4) keyboard you need a patch for both kernel and wsconsctl(8). It's because NetBSD does not know about some iso8859-2 characters, specifically characters with caron (hacek) and dead caron key. So do the following:
# cd /usr/src # patch < ~/NetBSD-lat2.diff
# cp /usr/src/sys/dev/wscons/wsksymdef.h /usr/include/dev/wscons/wsksymdef.h # cd /usr/src/sbin/wsconsctl # make USETOOLS=Yes # make USETOOLS=Yes install
mapfile /usr/share/wscons/keymaps/pckbd.sk.iso8859-2
# /etc/rc.d/wscons forcerestart
This is revision $Revision: 1.3 $. Any suggestions for improvements, fixes, etc. are welcome.