mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Paul LeoNerd Evans <leonerd@leonerd.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix to virtual terminal UTF-8 mode handling
Date: Tue, 17 May 2005 19:58:48 -0700	[thread overview]
Message-ID: <20050517195848.4a09318d.akpm@osdl.org> (raw)
In-Reply-To: <20050518030513.7fe55ef1@nim.leo>

Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:
>
>  This patch fixes a bug in the virtual terminal driver, whereby the UTF-8
>  mode is reset to "off" following a console reset, such as might be
>  delivered by mingetty, screen, vim, etc...

Is it a bug?  What did earlier kernels do?  2.4.x?

>  Rather than resetting to hardcoded "0", it gets reset on or off, as
>  determined by a new sysctl located in /proc/tty/vt/default_utf8_mode.
>  This patch is best accompanied with an addition of the following line to
>  the system's init scripts:
> 
>    echo 1 >/proc/tty/vt/default_utf8_mode
> 
>  Following this, all resets to the console will leave it with UTF-8 mode
>  on.
> 
>  The default behaviour of this sysctl is as before, without the patch.
>  Namely, UTF-8 mode is switched off on reset. [I.e applying this patch
>  does not affect default behaviour].

Presumably userspace knows what mode the user wants the terminal to be
using.  Shouldn't userspace be resetting that mode after a reset?


  parent reply	other threads:[~2005-05-18  3:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18  2:05 Paul LeoNerd Evans
2005-05-18  2:15 ` Paul LeoNerd Evans
2005-05-18  2:58 ` Andrew Morton [this message]
2005-05-18  3:10   ` Daniel Jacobowitz
2005-05-18 11:10     ` Paul LeoNerd Evans
2005-05-18 11:04   ` Paul LeoNerd Evans

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=20050517195848.4a09318d.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=leonerd@leonerd.org.uk \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®