From: "Florian v. Savigny" <lorian@fsavigny.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Kernel update messed up console encoding
Date: Mon, 02 Mar 2009 13:51:45 +0100 [thread overview]
Message-ID: <0MKv1o-1Le7cX1nR7-000DuT@mrelayeu.kundenserver.de> (raw)
In-Reply-To: <gogftn$lj7$1@ger.gmane.org> (message from Nikos Chantziaras on Mon, 02 Mar 2009 13:29:02 +0200)
Hi Nikos,
> On my /etc/rc.conf, there's this:
>
> # Set unicode to YES to turn on unicode support for keyboards
> # and screens.
> unicode="YES"
It's set to "no" on my machine (I already posted this; this was the
first thing outside the kernel that I considered, I think). (I haven't
yet posted that I use sys-apps/baselayout-1.12.11.1, though - not sure
how this relates to the OpenRC you are mentioning.)
> So I suppose maybe simpley changing this to "NO" will do the job.
Curiously, it does not, even though it seems supposed to do it, using
the very mechanisms we already discussed (kbd_mode and console escape
sequences). It's a little strange:
> Try "grep -ri unicode /etc" and see what you find.
Doing this, I found out that /etc/runlevels/boot/keymaps and
/etc/init.d/keymaps do use this variable, but do so for setting the
keyboard encoding only if it's set to "yes". In other words, if the
kernel starts up with 8-bit encoding for the console, these scripts (I
don't know which one, perhaps both - they seem to do the same thing in
this respect) will switch to unicode for the keyboard, but not the
other way round (i.e. the if statement "if [[${UNICODE} == 'yes']]"
has no else part, so if $UNICODE has a different value, such as 'no',
it is simply ignored, and nothing happens). For the terminal encoding,
however, the scripts seem to act both ways (the if statement does have
an else part). Strange, to me (or am I overlooking something?).
(I'm not sure, BTW, whether the double '=' is a gentoo peculiarity,
nor whether this kind of string comparison is case-insensitive. But in
any case, the scripts only test for "yes", in lower case, so anything
else should effectively mean "no".)
Best regards,
Florian
prev parent reply other threads:[~2009-03-02 12:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 17:29 [gentoo-user] Kernel update messed up console encoding Florian v. Savigny
2009-02-27 21:05 ` Sebastian Günther
2009-02-28 10:34 ` Florian v. Savigny
2009-02-28 11:34 ` Eray Aslan
2009-02-28 14:26 ` Sebastian Günther
2009-02-28 17:38 ` Florian v. Savigny
2009-02-28 18:48 ` Sebastian Günther
2009-03-01 9:36 ` Florian v. Savigny
2009-03-01 10:30 ` [gentoo-user] " Nikos Chantziaras
2009-03-01 12:25 ` Florian v. Savigny
2009-03-01 12:48 ` Nikos Chantziaras
2009-03-02 1:01 ` Florian v. Savigny
2009-03-02 11:29 ` Nikos Chantziaras
2009-03-02 12:51 ` Florian v. Savigny [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=0MKv1o-1Le7cX1nR7-000DuT@mrelayeu.kundenserver.de \
--to=lorian@fsavigny.de \
--cc=gentoo-user@lists.gentoo.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