[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
translate-region bug
From: |
Jesper Harder |
Subject: |
translate-region bug |
Date: |
Tue, 24 Feb 2004 15:00:28 +0100 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
`translate-region' doesn't work correctly for multibyte characters.
For example:
(let ((table (make-string 256 ?y)))
(setf (aref table ?a) ?≠)
(with-temp-buffer
(insert "abra")
(translate-region (point-min) (point-max) table)
(buffer-string)))
=> "\x9c\xf4ye"
It should have returned:
"≠yy≠"
In GNU Emacs 21.3.50.63 (i686-pc-linux-gnu, GTK+ Version 2.0.2)
of 2004-02-21 on defun.localdomain
configured using `configure '--with-gtk''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.iso88591
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- translate-region bug,
Jesper Harder <=