From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EgXpS-0004gC-VT for mharc-grub-devel@gnu.org; Sun, 27 Nov 2005 20:29:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgXpR-0004fY-7I for grub-devel@gnu.org; Sun, 27 Nov 2005 20:29:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgXpK-0004ae-MS for grub-devel@gnu.org; Sun, 27 Nov 2005 20:29:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgXpK-0004aP-E0 for grub-devel@gnu.org; Sun, 27 Nov 2005 20:29:06 -0500 Received: from [211.154.174.56] (helo=mail.thizlinux.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1EgXpH-0005Kx-RK for grub-devel@gnu.org; Sun, 27 Nov 2005 20:29:05 -0500 Received: (qmail 31646 invoked by uid 0); 28 Nov 2005 01:13:00 -0000 Received: from unknown (HELO ?192.168.0.135?) (andy.zheng@thizlinux.org@192.168.0.135) by 0 with SMTP; 28 Nov 2005 01:13:00 -0000 From: Andy Zheng To: grub-devel@gnu.org Content-Type: multipart/mixed; boundary="=-7a/yLIMLdxHSFf3HgjSP" Date: Sun, 27 Nov 2005 09:27:33 +0800 Message-Id: <1133054853.2501.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Subject: About grub-1.91's terminal vesafb .(CJK characters) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 01:29:13 -0000 --=-7a/yLIMLdxHSFf3HgjSP Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, I discovered that, in the current GRUB 2 (1.91 and CVS as of today), the vesafb terminal cannot display fullwidth (16x16) CJK characters properly. (The vga terminal displays both halfwidth and fullwidth characters properly.) I finally got it to work after some tweaking. Please see the attached patch file. Thanks! Andy Zheng ThizLinux Software Institute, Beijing --=-7a/yLIMLdxHSFf3HgjSP Content-Disposition: attachment; filename=grub-1.91-vesafb-write-char-fullwidth.patch Content-Type: text/x-patch; name=grub-1.91-vesafb-write-char-fullwidth.patch; charset=GB2312 Content-Transfer-Encoding: 7bit --- grub-1.91~/term/i386/pc/vesafb.c 2005-11-25 15:22:36.000000000 +0800 +++ grub-1.91/term/i386/pc/vesafb.c 2005-11-25 15:28:36.000000000 +0800 @@ -316,7 +316,10 @@ { unsigned char color; - if (bitmap[offset] & (1 << (8-i))) + if (i == 8) + offset++; + + if (bitmap[offset] & (1 << (7 - i % 8))) { color = p->fg_color; } --=-7a/yLIMLdxHSFf3HgjSP--