lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1175665163.4519.7.camel@daplas>
Date:	Wed, 04 Apr 2007 13:39:23 +0800
From:	"Antonino A. Daplas" <adaplas@...il.com>
To:	Paul LeoNerd Evans <leonerd@...nerd.org.uk>
Cc:	Pavel Machek <pavel@....cz>, Andrew Morton <akpm@...l.org>,
	Linux Kernel Development <linux-kernel@...r.kernel.org>,
	Jan Engelhardt <jengelh@...ux01.gwdg.de>,
	"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH] vt: Expose system-wide UTF-8 default setting via sysfs

On Tue, 2007-04-03 at 17:35 +0100, Paul LeoNerd Evans wrote:
> On Tue, Apr 03, 2007 at 04:20:52PM +0000, Pavel Machek wrote:
> > HPA is right... this should be fixed in userland. Reset should reset a
> > console, and if you want utf-8, do \ec\ewhatever to get it.
> 
> As I've already said elsewhere, does anything say that "reset" means
> that UTF-8 is turned off, or merely reset back to some known state? I
> personally would consider that UTF-8 being on is the default, and if
> something wants it off it should ask specifically..
> 
> Consider any other terminal emulator, such as those running on X11; when
> they're reset, they know to keep UTF-8 mode turned on, because it said
> so in their config, or in the locale. Kernel doesn't really have nice
> access to the LANG environment variable, but we can give it something
> similar; namely, via a module parameter.

I agree with Paul.  Reset or RIS is (R)eset to (I)nitial (S)tate,
represented as ESC 06/03. "Initial state" is defined in ECMA-48 as the
state of the device after it was made operational. It doesn't
necessarily mean that the "initial state" is the safest configuration.
So, if this "initial state" includes enabling UTF-8, then the device has
to go into UTF-8 upon invoking RIS.

Tony

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ