Attached is a small lisp file "bug.el" to reproduce the problem.
Execute it as follows:
mfabian@gregory:~/xemacs-bug$ LANG=C xemacs -q -batch -eval "(require
'un-define)" -l bug.el
Wrote /tmp/utf-8-output
mfabian@gregory:~/xemacs-bug$ LANG=C iconv -f utf-8 -t euc-jp /tmp/utf-8-output >
/dev/null
iconv: illegal input sequence at position 65535
mfabian@gregory:~/xemacs-bug$
and you see that one Japanese character in the output has been
destroyed.
This problem seems to occur for any big Japanese files in UTF-8. When
saving them, characters will be destroyed at file positions close to
N * 65535
bytes.
--
Mike Fabian <mfabian(a)suse.de>
http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。