From owner-freebsd-bugs Sat Mar 11 18:50: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1550C37BD33 for ; Sat, 11 Mar 2000 18:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA01660; Sat, 11 Mar 2000 18:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from happy.checkpoint.com (happy.checkpoint.com [199.203.156.224]) by hub.freebsd.org (Postfix) with ESMTP id 7B8CA37BD39 for ; Sat, 11 Mar 2000 18:40:38 -0800 (PST) (envelope-from mellon@happy.checkpoint.com) Received: (from mellon@localhost) by happy.checkpoint.com (8.9.3/8.9.3) id EAA15687; Sun, 12 Mar 2000 04:41:57 GMT (envelope-from mellon) Message-Id: <200003120441.EAA15687@happy.checkpoint.com> Date: Sun, 12 Mar 2000 04:41:57 GMT From: mellon@pobox.com Reply-To: mellon@pobox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17330: kbdmap/vidfont bug Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17330 >Category: bin >Synopsis: a bug in the routine reading rc.conf >Confidential: yes >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 11 18:50:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Anatoly Vorobey >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: latest CURRENT. >Description: In usr.sbin/kbdmap/kbdmap.pl, the routine &font_current which reads /etc/rc.conf to determine the current font does not handle correctly the quotation marks around fontname, which causes later regexp in &vidcontrol to fail, as a consequence vidcontrol(1) is not invoked. >How-To-Repeat: Install a non-standard font not matching your LANG vars in /etc/rc.conf . Run vidfont(1), but do not choose any font, rather exit by Canceling. Your font will be changed to the one matching your $LANG, but then it'll fail to revert to your default font on exit. >Fix: --- /usr/src/usr.sbin/kbdmap/kbdmap.pl Sat Aug 28 01:16:39 1999 +++ /usr/sbin/kbdmap Sun Mar 12 04:38:02 2000 @@ -86,7 +86,7 @@ while() { /^#/ && next; if (/^\s*font[0-9]+x[0-9]+\s*=\s*(\S+)/) { - $font_current = $1 if $1 ne "NO"; + ($font_current = $1) =~ s/"//g if $1 ne "NO"; } } close F; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message