Red Hat Bugzilla – Bug 129736
emacs doesn't detect utf8 encoding of file
Last modified: 2007-11-30 17:10:47 EST
Unless i add a local coding variable defining the file as utf8 emacs
doesn't autodetect the file as utf8, so when you save the utf8
characters in the file are changed.
Created attachment 102645 [details]
The textfile, in utf8.
$ LC_MESSAGES=C iconv -f utf-8 -t utf-8 < eel-changelog > /dev/null
iconv: illegal input sequence at position 8181
Well spotted: the second "Tomasz K" is different from the first -
so it looks like the file corrupted.
Created attachment 103246 [details]
Other text file
Ok, what about this one. It passes iconv and has the same problem.
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
AFAICT this is ok now with cvs emacs (ie emacs22)
which has improved upstream support.