<<< Date Index >>>     <<< Thread Index >>>

Re: $assumed_charset settings (was: special chars)



On Tue, 27 Mar 2007, Alain Bench wrote:

On Monday, March 26, 2007 at 16:39:36 +0200, Vincent Lefèvre wrote:

about files that contain both ISO-8859-1 and UTF-8, to let the user
decide. [...] it can happen in diffs where some files are encoded in
ISO-8859-1 and others in UTF-8.

   That's definitely undecidable by the $assumed_charset mechanism.
However, the default and so evil pass-thru mode might greatly help:
Seemingly some terminals (Rxvt?) can display simultaneously Latin-1 and
UTF-8. Feed them the raw mix; get seamless display.

Something has to provide the mode-switch between UTF-8 and Latin-1.

xterm can do that (requires specific resource settings, or command-line
option such as "uxterm +u8").

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

ESC % @
Select default character set, ISO 8859-1 (ISO 2022)

ESC % G
Select UTF-8 character set (ISO 2022)

   I don't know wich terminal(s) do that (PuTTY doesn't), but am very
interested in any feedback.

A quick check on Debian/testing shows gnome-terminal 2.14.2, konsole 1.6.5 and pterm 0.58 do not support this scenario.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net