lkml.org 
[lkml]   [2005]   [May]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 17 May 2005 23:10:30 -0400
FromDaniel Jacobowitz <>
SubjectRe: [PATCH] Fix to virtual terminal UTF-8 mode handling
On Tue, May 17, 2005 at 07:58:48PM -0700, Andrew Morton wrote:
> 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?

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-18 05:14    [from the cache]
©2003-2008