From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ld9tt-0003bR-UU for garchives@archives.gentoo.org; Fri, 27 Feb 2009 21:05:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 807DBE02F0; Fri, 27 Feb 2009 21:05:40 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by pigeon.gentoo.org (Postfix) with ESMTP id 399C6E02F0 for ; Fri, 27 Feb 2009 21:05:40 +0000 (UTC) Received: from localhost ([92.50.83.196]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1Ld9tq2zFH-00062K; Fri, 27 Feb 2009 22:05:39 +0100 Date: Fri, 27 Feb 2009 22:05:37 +0100 From: Sebastian =?iso-8859-1?Q?G=FCnther?= To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Kernel update messed up console encoding Message-ID: <20090227210537.GA10044@marvin.heimnetz.local> References: <0MKv1o-1Ld6WW1EfT-000DMF@mrelayeu.kundenserver.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <0MKv1o-1Ld6WW1EfT-000DMF@mrelayeu.kundenserver.de> User-Agent: Mutt/1.5.16 (2007-06-09) X-Provags-ID: V01U2FsdGVkX1/9dW3yx8Z7Bf2eawFDwB4aGDys5fXk0kopF3z DSLnJHs/lzCWLRfIjFtBn7yeABBv19ojaQU0QOs126BZy6WUP4 lAsEU6IqgW7iu+xILByDQ== X-Archives-Salt: 89df665c-d162-4134-b824-673b48744ea6 X-Archives-Hash: 3d964856e46b4079e8a1621d02716f22 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Florian v. Savigny (lorian@fsavigny.de) [27.02.09 18:30]: >=20 > Dear listmates, >=20 > (I did try to use a more specific mailing list, and tried > gentoo-admin, but it seems there's nobody around.) >=20 > I recently updated my kernel from 2.6.17 to 2.6.27, and it seems that > the new kernel causes the encoding of the console to behave weird:=20 >=20 > I used to use the default Unix encoding, i.e. iso-8859-1, because this > was fine for German (now I want to stick to it because I have so much > legacy material in that encoding). Now, when I type a string with > Non-ASCII characters on the commandline, it looks normal, but when I > redirect this to a file, the file command identifies the contents of > that file (correctly, it seems to me) as UTF-8. When I boot the old > kernel (which I kept), the same procedure results in a file identified > as iso-8859-1 (and with accordingly fewer bytes). Here are the > contents (the same sentence): >=20 > Kernel 2.6.17: >=20 > "Ich kann es au=81=DFerdem nicht =81=E4ndern" >=20 > Kernel 2.6.27: >=20 > "Ich kann es au=C3=9Ferdem nicht =C3=A4ndern" >=20 > I grepped the .config files for any options that might have a bearing > on this. The only difference I found was in the first of these four > lines: >=20 > linux-2.6.17: >=20 > # CONFIG_NLS_ASCII is not set > CONFIG_NLS_ISO8859_1=3Dy > CONFIG_NLS_ISO8859_15=3Dy > CONFIG_NLS_UTF8=3Dy >=20 > linux-2.6.27 >=20 > CONFIG_NLS_ASCII=3Dy > CONFIG_NLS_ISO8859_1=3Dy > CONFIG_NLS_ISO8859_15=3Dy > CONFIG_NLS_UTF8=3Dy >=20 > So I set $CONFIG_NLS_ASCII differently for the new kernel. But as far > as I understand, these refer to the handling of file names (it's in > the section "file systems"), and only specify what is supported, so I > don't see how this could have an effect on console encoding. >=20 > The only thing I am dead sure about is that the kernel itself must be > the culprit, because when I boot the old kernel, this behaviour goes > away. There is absolutely no change in the system otherwise. (The > $UNICODE variable in /etc/rc.conf is set to "no".) >=20 > Can anyone give me a hint where to look what I have messed up? Emacs, > which I sometimes like to use on the console, is particularly > uncomfortable with this, and I seem to write confusing e-mails. >=20 > Many thanks in advance for any hint, >=20 > Florian >=20 >=20 Genrally speaking: switch to utf-8! There are many tools which can=20 convert your files automatically. To your issue: Well, there still is /etc/conf.d/consolefont which could mess up things.=20 Or the locales... But the different bahavior of the two kernels is strange... Is CONFIG_NLS_DEFAULT different of the two kernels? Maybe it's also=20 related to the kernel build in keymap... Maybe you should try the gentoo-user-de list, maybe there is someone=20 whon ran into the same problem... HTH Sebastian --=20 " Religion ist das Opium des Volkes. " Karl Marx SEB@STI@N G=C3=9CNTHER mailto:samson@guenther-roetgen.de --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) iEYEARECAAYFAkmoVaEACgkQ4zavaU1MGbQrjwCeI963a0GyZGcNahEavRfiYyZm to8AniG8e/2hcEHbqXrW4wiRMPQtEp6D =dbkt -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--