From ache@nagual.pp.ru  Tue Dec 15 11:10:45 2009
Return-Path: <ache@nagual.pp.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C5BD5106568F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Dec 2009 11:10:40 +0000 (UTC)
	(envelope-from ache@nagual.pp.ru)
Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69])
	by mx1.freebsd.org (Postfix) with ESMTP id 4F6988FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Dec 2009 11:10:40 +0000 (UTC)
Received: from nagual.pp.ru (ache@localhost [127.0.0.1])
	by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id nBFAv6iJ000762
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Dec 2009 13:57:06 +0300 (MSK)
	(envelope-from ache@nagual.pp.ru)
Received: (from ache@localhost)
	by nagual.pp.ru (8.14.3/8.14.3/Submit) id nBFAv3QG000761;
	Tue, 15 Dec 2009 13:57:04 +0300 (MSK)
	(envelope-from ache)
Message-Id: <200912151057.nBFAv3QG000761@nagual.pp.ru>
Date: Tue, 15 Dec 2009 13:57:04 +0300 (MSK)
From: Andrey Chernov <ache@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: xterm emulator and screen maps = no vt100 pseudographics
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         141633
>Category:       kern
>Synopsis:       [libteken] xterm emulator and screen maps = no vt100 pseudographics
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ed
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 15 11:20:01 UTC 2009
>Closed-Date:    Mon Feb 08 09:17:40 UTC 2010
>Last-Modified:  Mon Feb  8 09:20:01 UTC 2010
>Originator:     Andrey Chernov
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:

FreeBSD-current

>Description:

It seems xterm emulator can't co-exist with screen maps, f.e. with CP866
font loaded and
vidcontrol -l koi8-r2cp866
I got Russian letters everywhere instead of vt100 pseudographics due to
missing (i.e. default) ac= termcap capability (f.e. in tzsetup etc.)
There are 2 ways to fix it.
1) Make separate xterm-r with corrected ac= (that way is ugly, but was
done for cons25r f.e.)
2) Don't seek for vt100 pseudographics in loaded font at all, just use
internal kernel font for it.
Please decide how to fix this better. For now only fallback to '-T cons25'
is solution for Russian users, but it doesn't work well (see another PR).


>How-To-Repeat:

In etc/rc.conf
font8x16="cp866b-8x16"
scrnmap="koi8-r2cp866"
(loads CP866 VGA font and maps it to KOI8-R encoding)

tzsetup

...wrong pseudographics as result.

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ed 
Responsible-Changed-By: ache 
Responsible-Changed-When: Tue Dec 15 11:26:37 UTC 2009 
Responsible-Changed-Why:  
new terminal emulator 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141633 
State-Changed-From-To: open->closed 
State-Changed-By: ed 
State-Changed-When: Mon Feb 8 09:17:39 UTC 2010 
State-Changed-Why:  
libteken now uses ASCII characters for box drawing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141633 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/141633: commit references a PR
Date: Mon,  8 Feb 2010 09:17:08 +0000 (UTC)

 Author: ed
 Date: Mon Feb  8 09:16:59 2010
 New Revision: 203659
 URL: http://svn.freebsd.org/changeset/base/203659
 
 Log:
   Fall back to ASCII codepoints for box drawing.
   
   Even though the default VGA font provides box drawing fonts, there is no
   guarantee any font will provide these as well (i.e. ISO-8859-*, KOI8-R).
   Just use ASCII characters for box drawing.
   
   PR:		kern/141633
 
 Modified:
   head/sys/teken/teken_scs.h
 
 Modified: head/sys/teken/teken_scs.h
 ==============================================================================
 --- head/sys/teken/teken_scs.h	Mon Feb  8 07:38:25 2010	(r203658)
 +++ head/sys/teken/teken_scs.h	Mon Feb  8 09:16:59 2010	(r203659)
 @@ -41,12 +41,12 @@ static const uint16_t teken_boxdrawing_u
      0x2502, 0x2264, 0x2265, 0x03c0, 0x2260, 0x00a3, 0x00b7
  };
  
 -/* CP437 points for VT100 box drawing. */
 +/* ASCII points for VT100 box drawing. */
  static const uint8_t teken_boxdrawing_8bit[31] = {
 -    0x04, 0xb1, 0x48, 0x46, 0x43, 0x4c, 0xf8, 0xf1,
 -    0x4e, 0x56, 0xd9, 0xbf, 0xda, 0xc0, 0xc5, 0xc4,
 -    0xc4, 0xc4, 0xc4, 0xc4, 0xc3, 0xb4, 0xc1, 0xc2,
 -    0xb3, 0xf3, 0xf2, 0xe3, 0xd8, 0x9c, 0xfa,
 +    '?', '?', 'H', 'F', 'C', 'L', '?', '?',
 +    'N', 'V', '+', '+', '+', '+', '+', '-',
 +    '-', '-', '-', '-', '+', '+', '+', '+',
 +    '|', '?', '?', '?', '?', '?', '?',
  };
  
  static teken_char_t
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
