Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2018 12:52:30 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r332644 - stable/10/sys/dev/vt/hw/vga
Message-ID:  <201804171252.w3HCqUp4024220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Apr 17 12:52:30 2018
New Revision: 332644
URL: https://svnweb.freebsd.org/changeset/base/332644

Log:
  MFC r332421: vt: add three more cp437 mappings for vga textmode
  
  In UTF-8 locales mandoc uses a number of characters outside of the Basic
  Latin group, e.g. from general punctuation or miscellaneous mathematical
  symbols, and these rendered as ? in text mode.
  
  This change adds (char, replacement, code point, description):
  
      – - U+2013 En Dash
      ⟨ < U+27E8 Mathematical Left Angle Bracket
      ⟩ > U+27E9 Mathematical Right Angle Bracket
  
  This change addresses some common cases; there are others that still
  need to be added after a more thorough review.
  
  PR:		227409
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/dev/vt/hw/vga/vt_vga.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- stable/10/sys/dev/vt/hw/vga/vt_vga.c	Tue Apr 17 12:51:28 2018	(r332643)
+++ stable/10/sys/dev/vt/hw/vga/vt_vga.c	Tue Apr 17 12:52:30 2018	(r332644)
@@ -226,6 +226,7 @@ static const struct unicp437 cp437table[] = {
 	{ 0x03c0, 0xe3, 0x00 }, { 0x03c3, 0xe5, 0x00 },
 	{ 0x03c4, 0xe7, 0x00 }, { 0x03c6, 0xed, 0x00 },
 	{ 0x03d5, 0xed, 0x00 }, { 0x2010, 0x2d, 0x00 },
+	{ 0x2013, 0x2d, 0x00 },
 	{ 0x2014, 0x2d, 0x00 }, { 0x2018, 0x60, 0x00 },
 	{ 0x2019, 0x27, 0x00 }, { 0x201c, 0x22, 0x00 },
 	{ 0x201d, 0x22, 0x00 }, { 0x2022, 0x07, 0x00 },
@@ -274,7 +275,8 @@ static const struct unicp437 cp437table[] = {
 	{ 0x2640, 0x0c, 0x00 }, { 0x2642, 0x0b, 0x00 },
 	{ 0x2660, 0x06, 0x00 }, { 0x2663, 0x05, 0x00 },
 	{ 0x2665, 0x03, 0x01 }, { 0x266a, 0x0d, 0x00 },
-	{ 0x266c, 0x0e, 0x00 },
+	{ 0x266c, 0x0e, 0x00 }, { 0x27e8, 0x3c, 0x00 },
+	{ 0x27e9, 0x3e, 0x00 },
 };
 
 static uint8_t



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804171252.w3HCqUp4024220>