Re: [PATCH] Fix to virtual terminal UTF-8 mode handling

From: Daniel Jacobowitz
Date: Tue May 17 2005 - 22:12:20 EST


On Tue, May 17, 2005 at 07:58:48PM -0700, Andrew Morton wrote:
> Paul LeoNerd Evans <leonerd@xxxxxxxxxxxxxx> 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?

I'd be inclined to think that this is more of a terminfo issue. If you
want your terminal to reset into UTF-8, use a terminfo entry with the
appropriate command string instead of the current one - this would be
the 'rs1' capability:

rs1=\Ec\E]R

That's reset console to default, reset palette.

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

There's no standard way to represent this in userspace. But yeah.

--
Daniel Jacobowitz
CodeSourcery, LLC
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/