Subject: misc/21069: /etc/rc.d/wscons fix (wsfontload problem)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dawszy@arhea.pl>
List: netbsd-bugs
Date: 04/08/2003 20:44:37
>Number: 21069
>Category: misc
>Synopsis: We can now simply use non-standard fonts
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: misc-bug-people
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Tue Apr 08 11:45:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Dawid Szymański
>Release: NetBSD 1.6
>Organization:
--
Dawid Szymański aka SQ6EMM
"We can walk our road together if our goals are all the same;
We can run alone and free if we pursue a different aim."
- Rush
>Environment:
System: NetBSD gornik.tgr.lubin.edu.pl 1.6 NetBSD 1.6 (GORNIK) #0: Tue Feb 11 15:41:33 CET 2003 dawszy@gornik.tgr.lubin.edu.pl:/usr/src/sys/arch/i386/compile/GORNIK i386
Architecture: i386
Machine: i386
>Description:
It is important to get wsfontload working becouse without loading iso2 fonts,
many Polish people don't want to migrate and they are choosing
Free/Linus OS.
I'd like to get them to our world but as far as lot of them aren't
code hackers they can't (and me also) handle this bug.
It would be nice to get wsfontload working before 2.0 Release:)
Related PR's are:
15522, 13854 (this sollution works fine)
>How-To-Repeat:
http://people.arhea.net/dawszy/NetBSD/pl/vt220l.816.pl (ISO8859-2 fonts)
/usr/share/wscons/keymaps/pckbd.pl.iso8859-2 (Polish iso-2 keymap)
Just try to use them in wscons.conf ...
After aplying patch should work fine!
>Fix:
If it does solve the problem, we should also update wsfontload(8), section
EXAMPLES.
This patch is based on sollution provided in PR 13854
Tested on -current as of 20030403
Index: wscons
===================================================================
RCS file: /cvsroot/src/etc/rc.d/wscons,v
retrieving revision 1.9
diff -u -r1.9 wscons
--- wscons 2002/04/26 00:06:54 1.9
+++ wscons 2003/04/08 18:36:00
@@ -65,6 +65,7 @@
enc=$arg4
file=$arg5
cmd=$wsfld
+ cmd_ctl=$wsctl
case $width in
-)
@@ -88,7 +89,9 @@
;;
esac
cmd="$cmd -N $name $file"
+ cmd_ctl="$cmd_ctl -dw font=$name"
eval $DOIT $cmd
+ eval $DOIT $cmd_ctl
;;
screen)
>Release-Note:
>Audit-Trail:
>Unformatted: