>>>> Petr Konecny <pekon(a)ams.sunysb.edu> writes:
> when language-environment is set (I tried Latin-2 and Japanese),
> insert-file-contents-internal does not work as intended when used to
> compute md5 sum in package-get. It may be bug somewhere else
> (insert-file-contents-internal or with-temp-buffer comes to my mind),
> but the following works for me:
[ patch removed ]
>>>> Jan Vroonhof (Jan) said:
Jan> It
shouldn't matter. The md5 algorithm should be independent of the
Jan> buffer encoding. What version are you using?
XEmacs 21.2.13 with Mule[1] I will try it with recent CVS snapshot.
I wonder what this is supposed to do:
xemacs -vanilla -eval '
(progn
(set-language-environment "Latin-2")
(with-temp-file "/tmp/apel-copy"
(insert-file-contents-internal "/tmp/apel-1.11-pkg.tar.gz"))
(save-buffers-kill-emacs))'
For me the created file (/tmp/apel-copy) is bigger than the
original. Maybe insert-file-contents-internal is broken, because with
insert-file-contents-literally the copies are same.
Petr
[1] See gnus headers, if they are not lost :-)
--
let go your conscious self and act on instinct.