Date: Sun, 12 Mar 2000 04:41:57 GMT From: mellon@pobox.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17330: kbdmap/vidfont bug Message-ID: <200003120441.EAA15687@happy.checkpoint.com>
next in thread | raw e-mail | index | archive | help
>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(<F>) { /^#/ && 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003120441.EAA15687>