On Wed, Jan 25, 2023 at 07:02:45PM +0100, Sven Joachim wrote:
> Going through some old bug reports…
> 
> On 2004-05-31 20:04 -0400, Thomas Dickey wrote:
> 
> > On Mon, 31 May 2004, Daniel Jacobowitz wrote:
> >
> >> Are there really no other terminals which have a capability string to
> >> enter or exit UTF-8 mode?  I suppose for xterm, you have to start it in
> >> UTF-8 mode or not.  So maybe the Linux terminal really is unique in
> >> this respect.
> >
> > xterm can enter/exit via escape sequence, but a reset doesn't change the
> > UTF-8 mode.
> 
> Which would be rather undesirable anyway, at least in my opinion.
> 
> It also seems that the kernel's behavior (switching out of UTF-8 mode
> when it receives a reset sequence) which caused the initial complaint
> has changed, probably many years ago.
> 
> At least I am unable to reproduce the problem here with a 5.10 kernel
> and am inclined to just close the bug.

It was fixed in 2007 (as a side-effect of a configuration parameter that
was removed).  See the "default_utf8" variable and reset_terminal() in

https://github.com/torvalds/linux/commit/2e8ecb9db0bcc19e1cc8bb51e9252fe6a86a9863

https://github.com/torvalds/linux/commit/77bf2bab91e4e7df361963451c7b9a803516438c

Before that change, it was not initialized (and false), so a \Ec would
revert it to Latin-1.

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to