From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Date: Sat, 16 May 2009 21:15:25 +0200 From: Michael Schutte To: kbd@lists.altlinux.org Message-ID: <20090516191525.GA23674@graeme> Mail-Followup-To: kbd@lists.altlinux.org, 528357@bugs.debian.org, Jakub Wilk References: <20090512115626.GA7660@cavendish.icomputing.pl> <20090516155022.GA10925@graeme> <20090516162709.GA3212@cavendish.icomputing.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20090516162709.GA3212@cavendish.icomputing.pl> Jabber-ID: schm@yne.at User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Jakub Wilk , 528357@bugs.debian.org Subject: Re: [kbd] Bug#528357: /usr/bin/showconsolefont: produces garbage X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2009 19:15:47 -0000 Archived-At: List-Archive: --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D15;filename=3Dshowco= nsolefont-lenny.png;att=3D1;bug=3D528357=09 http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=3D5;filename=3Dshowcon= solefont-garbage.png;att=3D1;bug=3D528357 [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=E2=80=99t even know which commit from linux-2.6.git introduces these problems. Perhaps I=E2=80=99m also missing something obvious. Any comments? All the best, --=20 Michael Schutte --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBAgAGBQJKDxDIAAoJEPPkEi8djCYafeIH/Ri2tSDjMjspFxxQYaqJsSde C4PfuHAUsrGLkgR3g5mN8/v4jFvaVFla4KWRb+fBhc8AygR+W1WggBKrWL+3/PB2 L1pTXywksA36Rgua4hHK0dvU7yul1UDabcSKqhV0NTFaPnvP33oNiV0i6myUhWwt 6Sdupcz5jwjm2ljHF3D7iU3WpWp/zzW2kifAN11hYicPohjh9Kyd6mViHLlO/gTj 77vb70UsErjkyWD1HNlbohG2KnksDoREAOTS3beUdAZn5aDr8KhRw+KhUGZk700X NpGBVq3PaiwjRA/WeXKxUx0XzWp0UEt4NMwereB/FsVmflWPVs83Yj1yXgWS9o0= =jTJO -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--