public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Brueckl <ib@wupperonline.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Egmont Koblinger <egmont@uhulinux.hu>
Subject: Re: [PATCH] console ASCII glyph 1:1 mapping
Date: Thu, 11 Dec 2008 10:36:51 -0800	[thread overview]
Message-ID: <49415DC3.5060203@zytor.com> (raw)
In-Reply-To: <alpine.LFD.2.00.0812110823320.3340@localhost.localdomain>

Linus Torvalds wrote:
> Hmm. I bounced both your patches to Peter, since they look valid but I 
> want somebody who knows this code better to ack them. 
> 
> Peter - is there somebody else who should double-check these things, or 
> can you ack them?

I should be able to.

For both patches:

Acked-by: H. Peter Anvin <hpa@zytor.com>

[Let me know if you prefer me setting up a git tree to pull from.]

This was introduced by commit
1ed8a2b3c501bedd4b35130c8a52662ccf78abad, which among other things have
this:

--------
As Behdad pointed out, some fonts (e.g. sun12x22 from the kbd package)
lack Unicode mapping information, hence all you get is lots of question
marks. Though theoretically it's actually a user-space bug (the font
should be fixed), Behdad and I both believe that it'd be good to work
around in the kernel by re-introducing the fallback solution for ASCII
characters only. This sounds a quite reasonable decision, since all
fonts ship the ASCII characters in the first 128 positions. This way
users won't be surprised by lots of question marks just because s/he
issued a not-so-perfectly parameterized setfont command. As this
fallback is only re-introduced for code points below 128, you still
won't see an accented letter replaced by another, but at least you'll
always get the English letters right.
--------

The implementation was obviously buggy, however.

The statement above is also just plain wrong, since installing a font
with no Unicode table causes a direct-to-font Unicode table to be set up
(0xF0xx for all positions) unless explicitly overridden.

Anyway, I was rather against adding this fallback, because I felt it was
needless complexity to deal with a very explicit user error.
Fortunately, the bug didn't affect any legitimate users.

	-hpa

      reply	other threads:[~2008-12-11 18:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 22:35 [PATCH] console ASCII glyph 1:1 mapping Ingo Brueckl
2008-12-11 16:25 ` Linus Torvalds
2008-12-11 18:36   ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49415DC3.5060203@zytor.com \
    --to=hpa@zytor.com \
    --cc=egmont@uhulinux.hu \
    --cc=ib@wupperonline.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox