Subject: misc/21069: /etc/rc.d/wscons fix (wsfontload problem)
To: None <>
From: None <>
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
>Originator:     Dawid Szymański
>Release:        NetBSD 1.6
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
System: NetBSD 1.6 NetBSD 1.6 (GORNIK) #0: Tue Feb 11 15:41:33 CET 2003 i386
Architecture: i386
Machine: i386
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: (ISO8859-2 fonts)
	/usr/share/wscons/keymaps/ (Polish iso-2 keymap)
	Just try to use them in wscons.conf ...

	After aplying patch should work fine!


If it does solve the problem, we should also update wsfontload(8), section

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 @@
+				cmd_ctl=$wsctl
 				case $width in
@@ -88,7 +89,9 @@
 				cmd="$cmd -N $name $file"
+				cmd_ctl="$cmd_ctl -dw font=$name"
 				eval $DOIT $cmd
+				eval $DOIT $cmd_ctl