>>>> Hrvoje Niksic (H) said:
>>>> SL Baur (sb) said:
sb>
insert-file-contents-internal is supposed to do encoding and
sb> insert-file-contents-literally is not, so I think this behavior is
sb> O.K.
>>>> Petr Konecny <pekon(a)informatics.muni.cz>
writes:
> Thanks for explanation. Then I think the original patch (see thread
> in xemacs-patches) is correct. Am I wrong ?
H> Isn't package-get stuff supposed to work with EFS? Does
H> `insert-file-contents-literally' grok EFS?
My problem is not with downloading the package, but with computing its
md5 sum. The file is stored into /tmp and then loaded into a buffer with
insert-file-content-internal. But since my language environment is
Latin-2, the resulting buffer is different from binary contents of the
file and md5 sums do not match. It is in the following piece of code:
(with-temp-buffer
;; What ever happened to i-f-c-literally
(let (file-name-handler-alist)
(insert-file-contents-internal full-package-filename))
(if (not (string= (md5 (current-buffer))
(package-get-info-prop this-package
'md5sum)))
(error "Package %s does not match md5 checksum"
base-filename)))
When I change insert-file-contents-internal to
insert-file-contents-literally the computed md5 sum is OK and the
package is succesfully installed.
Petr
--
Admiration, n.:
Our polite recognition of another's resemblance to ourselves.
-- Ambrose Bierce, "The Devil's Dictionary"