Re: [2.6 patch] UTF-8 fixes in comments

From: Willy Tarreau
Date: Wed Apr 30 2008 - 15:50:03 EST


On Wed, Apr 30, 2008 at 01:08:51AM +0100, Samuel Thibault wrote:
> Willy Tarreau wrote:
> > 3) if I enter Alt-196, I get a "Ä". Flushing the buffer shows that od
> > got two bytes: c3 84.
>
> Confirmed.
>
> Try init=/bin/stty -a, that will show
>
> -iutf8
>
> So there is little wonder that canonical mode does not work as expected.
>
> Try init=/bin/sh, from that shell run stty iutf8. Then things will work
> fine. The fix is thus just to make the VT's tty initial iutf8 setup
> follow vt.default_utf8.

Will try that on a more recent install. Mine's stty does not support
this option. Your analysis makes quite a lot of sense, and such a fix
would wipe part of my annoyances/anger with this recent change.

Thanks,
Willy

--
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/