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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 17, 2005 at 07:58:48PM -0700, Andrew Morton wrote:
> Paul LeoNerd Evans <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux