[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Text mode Emacs in multibyte terminal
From: |
Andreas Schwab |
Subject: |
Text mode Emacs in multibyte terminal |
Date: |
Wed, 16 Nov 2005 22:14:09 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
When running a text mode Emacs in a multibyte environment (eg. utf8 xterm
with LANG=de_DE.UTF-8), and visiting a binary file (like /bin/true) you
get a garbled screen. The problem is that all non-control characters are
written verbatim to the terminal as if it were single-byte encoded. Even
setting the buffer to multibyte and the terminal coding system to utf-8
doesn't help. The only way to get a correct display is to load the file
with a forced coding system of utf-8 or some single-byte coding system.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Text mode Emacs in multibyte terminal,
Andreas Schwab <=