Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2014 07:02:57 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270388 - head/sys/dev/vt/hw/vga
Message-ID:  <201408230702.s7N72vb4037591@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sat Aug 23 07:02:57 2014
New Revision: 270388
URL: http://svnweb.freebsd.org/changeset/base/270388

Log:
  vt_vga: Give only the character part of term_char_t to vga_get_cp437()
  
  This fixes a bug where vga_get_cp437() was called with an invalid
  argument. The screen was then filled with '?' instead of the actual
  character.
  
  MFC after:	1 week

Modified:
  head/sys/dev/vt/hw/vga/vt_vga.c

Modified: head/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- head/sys/dev/vt/hw/vga/vt_vga.c	Sat Aug 23 05:24:31 2014	(r270387)
+++ head/sys/dev/vt/hw/vga/vt_vga.c	Sat Aug 23 07:02:57 2014	(r270388)
@@ -799,7 +799,7 @@ vga_bitblt_text_txtmode(struct vt_device
 			 * character set used by the VGA hardware by
 			 * default.
 			 */
-			ch = vga_get_cp437(c);
+			ch = vga_get_cp437(TCHAR_CHARACTER(c));
 
 			/* Convert colors to VGA attributes. */
 			attr = bg << 4 | fg;



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