Linux console tools development discussion
 help / color / mirror / Atom feed
From: Michael Schutte <michi@uiae.at>
To: kbd@lists.altlinux.org
Cc: Jakub Wilk <ubanus@users.sf.net>, 528357@bugs.debian.org
Subject: Re: [kbd] Bug#528357: /usr/bin/showconsolefont: produces garbage
Date: Sat, 16 May 2009 21:15:25 +0200
Message-ID: <20090516191525.GA23674@graeme> (raw)
In-Reply-To: <20090516162709.GA3212@cavendish.icomputing.pl>

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

Hi Alexey,

Somewhere between 2.6.26 and 2.6.29, a change in the Linux kernel has
caused showconsolefont to print garbage instead of spaces.  A Debian
user has provided these two screenshots in his bug report [1]:

    http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=showconsolefont-lenny.png;att=1;bug=528357	
    http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=showconsolefont-garbage.png;att=1;bug=528357

[1] http://bugs.debian.org/528357

This happens only when the console is in Unicode mode, which makes it
quite clear that the space character becomes something different in each
unimap showconsolefont switches to.  And indeed, if "\xef\x80\xa0"
(which is the UTF-8 representation of U+F020, a straight-to-font space)
is used instead of " ", everything is fine again for Unicode consoles;
but, not surprisingly, this produces rubbish in XLATE mode.

One way to solve this would be to check which mode the VT is in and then
using the appropriate way to print spaces.  Another idea is forcibly
switching the console to Unicode mode, dumping the font using UTF-8
characters, and then reverting the mode change if necessary, but that
would involve a near-complete rewrite of showconsolefont.c.  There might
be better solutions, but I don’t even know which commit from
linux-2.6.git introduces these problems.

Perhaps I’m also missing something obvious.  Any comments?

All the best,
-- 
Michael Schutte <michi@uiae.at>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

       reply	other threads:[~2009-05-16 19:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-16 19:15     ` Michael Schutte [this message]
2009-05-18 18:00       ` Michael Schutte

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=20090516191525.GA23674@graeme \
    --to=michi@uiae.at \
    --cc=528357@bugs.debian.org \
    --cc=kbd@lists.altlinux.org \
    --cc=ubanus@users.sf.net \
    /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

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git