From naddy@bigeye.rhein-neckar.de  Thu Aug 13 19:31:59 1998
Received: from birdland.rhein-neckar.de (birdland.rhein-neckar.de [193.197.88.3])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA04366
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Aug 1998 19:31:57 -0700 (PDT)
          (envelope-from naddy@bigeye.rhein-neckar.de)
Received: from mips.rhein-neckar.de (uucp@localhost) by birdland.rhein-neckar.de (8.8.7/8.8.3) with bsmtp id EAA03346 for FreeBSD-gnats-submit@freebsd.org; Fri, 14 Aug 1998 04:31:29 +0200 (MET DST)
Received: from bigeye.rhein-neckar.de ([193.197.88.35]) by mips.rhein-neckar.de
	 with esmtp id m0z77yA-000WyTC
	(Debian Smail-3.2.0.101 1997-Dec-17 #2); Fri, 14 Aug 1998 02:43:50 +0200 (CEST)
Received: (from naddy@localhost)
	by bigeye.rhein-neckar.de (8.8.8/8.8.8) id CAA00339;
	Fri, 14 Aug 1998 02:44:25 +0200 (CEST)
	(envelope-from naddy)
Message-Id: <199808140044.CAA00339@bigeye.rhein-neckar.de>
Date: Fri, 14 Aug 1998 02:44:25 +0200 (CEST)
From: Christian Weisgerber <naddy@bigeye.rhein-neckar.de>
Reply-To: naddy@mips.rhein-neckar.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: pcvt displays wrong glyph for 0xFD in ISO Latin 1 mode
X-Send-Pr-Version: 3.2

>Number:         7610
>Category:       kern
>Synopsis:       [PATCH] pcvt displays wrong glyph for 0xFD in ISO Latin 1 mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 13 19:40:00 PDT 1998
>Closed-Date:    Tue Aug 18 20:13:56 PDT 1998
>Last-Modified:  Tue Aug 18 20:14:39 PDT 1998
>Originator:     Christian Weisgerber
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
>Environment:

pcvt console driver, VGA console, /usr/share/misc/pcvtfonts/* loaded.

>Description:

When a graphic character set is switched to ISO Latin 1, pcvt renders a
wrong glyph for the character at code position 0xFD (lower case y with
acute).

This buglet is obviously due to a typo in the source code, see fix
below.

>How-To-Repeat:

Assuming defaults:

# loadfont -c0 -f/usr/share/misc/pcvtfonts/vt220l.816
# loadfont -c1 -f/usr/share/misc/pcvtfonts/vt220h.816

$ printf '\e.A'		# switch G2 (-> GR) charset to ISO Latin 1
$ for i in `jot - 160 255 16`; do jot -s '' -b %c 16 $i; done

The third last character should be a small y with an acute accent.
The corresponding capital letter two rows above (0xDD) is correct.

>Fix:

--- /sys/i386/isa/pcvt/pcvt_tbl.h.orig	Fri Aug 14 02:13:27 1998
+++ /sys/i386/isa/pcvt/pcvt_tbl.h	Fri Aug 14 02:13:32 1998
@@ -433,7 +433,7 @@
 /* 70 */	0x6B | CSH, 0xA4 | CSL, 0x95 | CSL, 0xA2 | CSL,
 /* 74 */	0x93 | CSL, 0x81 | CSH, 0x94 | CSL, 0xF6 | CSL,
 /* 78 */	0x7F | CSH, 0x97 | CSL, 0xA3 | CSL, 0x96 | CSL,
-/* 7C */	0x81 | CSL, 0x69 | CSL, 0x6A | CSH, 0x98 | CSL
+/* 7C */	0x81 | CSL, 0x69 | CSH, 0x6A | CSH, 0x98 | CSL
 };
 
 /*---------------------------------------------------------------------------*
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Thu Aug 13 23:56:04 PDT 1998 
State-Changed-Why:  
awating committer 
State-Changed-From-To: suspended->closed 
State-Changed-By: jkoshy 
State-Changed-When: Tue Aug 18 20:13:56 PDT 1998 
State-Changed-Why:  
Fixed in rev 1.4 of "src/sys/i386/isa/pcvt/pcvt_tbl.h", thanks! 
>Unformatted:
