From owner-freebsd-bugs Wed Jan 22 14: 0:16 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E94537B492 for ; Wed, 22 Jan 2003 14:00:11 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D38AF43F5F for ; Wed, 22 Jan 2003 14:00:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0MM09NS049633 for ; Wed, 22 Jan 2003 14:00:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0MM09C3049632; Wed, 22 Jan 2003 14:00:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAEA437B405 for ; Wed, 22 Jan 2003 13:51:10 -0800 (PST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E55943F3F for ; Wed, 22 Jan 2003 13:51:06 -0800 (PST) (envelope-from nivit@libero.it) Received: from coryphantha (151.29.216.213) by smtp1.libero.it (6.7.015) id 3E0C717100A57682 for FreeBSD-gnats-submit@freebsd.org; Wed, 22 Jan 2003 22:51:04 +0100 Received: (qmail 387 invoked by uid 1002); 22 Jan 2003 09:44:43 -0000 Message-Id: <20030122094443.386.qmail@Coryphantha.DOMO.SVA> Date: 22 Jan 2003 09:44:43 -0000 From: nivit@libero.it (Nicola Vitale) Reply-To: Nicola Vitale To: FreeBSD-gnats-submit@FreeBSD.org Cc: Nicola Vitale X-Send-Pr-Version: 3.113 Subject: i386/47376: [PATCH], pcvt(4), COLOR_KERNEL_FG, 2nd character set, kernel messages Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47376 >Category: i386 >Synopsis: [PATCH], pcvt(4), COLOR_KERNEL_FG, 2nd character set, kernel messages >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 22 14:00:09 PST 2003 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD Coryphantha.DOMO.SVA 4.7-STABLE FreeBSD 4.7-STABLE #238: Tue Jan 21 22:28:41 CET 2003 root@Coryphantha.DOMO.SVA:/usr/obj/usr/src/sys/Coryphantha i386 vt0 on isa0 vt0: generic, 80 col, color, 12 scr, mf2-kbd, [R3.20-b24] vt0: driver is using old-style compatability shims >Description: If you configure the pcvt driver with the option COLOR_KERNEL_FG=FG_YELLOW (or another color with value greater than 7, see src/sys/i386/include/pc/display.h), and load a second character set, then the kernel messages become illegible in console. >How-To-Repeat: Install a kernel with the pcvt driver and with the options COLOR_KERNEL_FG=FG_YELLOW COLOR_KERNEL_BG=BG_BLACK Then from a terminal: loadfont -c0 -f /usr/share/misc/pcvtfonts/vt220l.816 loadfont -c1 -f /usr/share/misc/pcvtfonts/vt220h.816 scon -s 25 shutdown -h now >Fix: --- pcvt_out.c.diff begins here --- --- src/sys/i386/isa/pcvt/pcvt_out.c Thu Dec 30 17:17:10 1999 +++ src/sys/i386/isa/pcvt/pcvt_out.c.new Tue Jan 21 21:50:50 2003 @@ -1008,7 +1008,8 @@ if(color) { - kern_attr = (COLOR_KERNEL_FG | COLOR_KERNEL_BG) << 8; + /* bit 3 is for a 2nd character set */ + kern_attr = ((COLOR_KERNEL_FG & ~(1 << 3)) | COLOR_KERNEL_BG) << 8; user_attr = sgr_tab_color[0] << 8; } else --- pcvt_out.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message