Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-04 Thread Martin Mares
Hello! > Please note that I have dropped this patch in favor of this one: > > http://lkml.org/lkml/2007/4/2/422 Yes, this sounds very reasonable. Have a nice fortnight -- Martin `MJ' Mares <[EMAIL PROTECTED]> http://mj.ucw.cz/ Faculty

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-04 Thread Paul LeoNerd Evans
On Wed, Apr 04, 2007 at 10:12:06AM +0200, Jan Engelhardt wrote: > > On Apr 4 2007 13:42, Antonino A. Daplas wrote: > >Please note that I have dropped this patch in favor of this one: > > > >http://lkml.org/lkml/2007/4/2/422 > > ^^ Which is ok by me. I agree - Does The Right Thing as far as I'm c

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-04 Thread Jan Engelhardt
On Apr 4 2007 13:42, Antonino A. Daplas wrote: >> >> > Does whatever defines what these escapes mean, have any comment to make >> > about UTF-8? If not, why can't we declare that UTF-8 mode is the "reset" >> > mode, the default that would be dropped to on a full reset, and if >> > anyone wanted t

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-03 Thread Antonino A. Daplas
On Tue, 2007-04-03 at 17:37 +0200, Martin Mares wrote: > Hello! > > > Does whatever defines what these escapes mean, have any comment to make > > about UTF-8? If not, why can't we declare that UTF-8 mode is the "reset" > > mode, the default that would be dropped to on a full reset, and if > > anyo

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-03 Thread Paul LeoNerd Evans
On Mon, 02 Apr 2007 17:55:43 -0700 "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > I think you're missing the whole point of console reset. Its purpose is > to force the console into a known-good state. The fewer pieces of state > it leaves unset, the better. To some degree it's less important

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-03 Thread Martin Mares
Hello! > Does whatever defines what these escapes mean, have any comment to make > about UTF-8? If not, why can't we declare that UTF-8 mode is the "reset" > mode, the default that would be dropped to on a full reset, and if > anyone wanted to switch that out to non-default not-UTF-8 mode, they >

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-03 Thread Paul LeoNerd Evans
On Tue, Apr 03, 2007 at 01:41:27PM +0200, Martin Mares wrote: > > Resetting the console, either by ANSI escape sequences or by the reset > > utility, > > will drop the console back to legacy (non-UTF-8) mode. > > Yes, and as far as I understand the logic behind these escape sequences, > it's the

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-03 Thread Martin Mares
Hello! > Resetting the console, either by ANSI escape sequences or by the reset > utility, > will drop the console back to legacy (non-UTF-8) mode. Yes, and as far as I understand the logic behind these escape sequences, it's the intended behavior, not a bug. The escape sequence for terminal re

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread H. Peter Anvin
Jan Engelhardt wrote: On Apr 3 2007 08:16, Antonino A. Daplas wrote: That would be the cleanest and purest behavior. But it's possible to set one console to UTF-8 and another to legacy mode. The question would be: why would you want to have mixed consoles? Switching to UTF8 IMO does not take a

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Antonino A. Daplas
On Tue, 2007-04-03 at 02:23 +0200, Jan Engelhardt wrote: > On Apr 3 2007 08:16, Antonino A. Daplas wrote: > > > >That would be the cleanest and purest behavior. But it's possible to set > >one console to UTF-8 and another to legacy mode. > > The question would be: why would you want to have mixed

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Jan Engelhardt
On Apr 3 2007 08:16, Antonino A. Daplas wrote: > >That would be the cleanest and purest behavior. But it's possible to set >one console to UTF-8 and another to legacy mode. The question would be: why would you want to have mixed consoles? Switching to UTF8 IMO does not take away any characters, a

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Antonino A. Daplas
On Mon, 2007-04-02 at 10:35 -0700, H. Peter Anvin wrote: > Antonino A. Daplas wrote: > > Resetting the console, either by ANSI escape sequences or by the reset > > utility, > > will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving > > the > > field vc_data.vc_utf untouched in

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Antonino A. Daplas
On Mon, 2007-04-02 at 21:10 +0200, Jan Engelhardt wrote: > On Apr 2 2007 22:13, Antonino A. Daplas wrote: > >Resetting the console, either by ANSI escape sequences or by the reset > >utility, > >will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving > >the > >field vc_data.vc_

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Jan Engelhardt
On Apr 2 2007 22:13, Antonino A. Daplas wrote: >Resetting the console, either by ANSI escape sequences or by the reset utility, >will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving the >field vc_data.vc_utf untouched in reset_terminal(). In addition, a global >variable (defa

Re: [PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread H. Peter Anvin
Antonino A. Daplas wrote: Resetting the console, either by ANSI escape sequences or by the reset utility, will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving the field vc_data.vc_utf untouched in reset_terminal(). In addition, a global variable (default_utf8) which defines

[PATCH] vt: Do not clear UTF when resetting console

2007-04-02 Thread Antonino A. Daplas
Resetting the console, either by ANSI escape sequences or by the reset utility, will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving the field vc_data.vc_utf untouched in reset_terminal(). In addition, a global variable (default_utf8) which defines system-wide UTF-8 setting is