arc-mode doesn't set coding-system-for-read when opening files
inside a
zip file. So when opening pictures I often get format error due to ascii
conversion, as my default coding-system is raw-text.
The patch below sets coding-system-for-read while reading the file, and
buffer-file-coding-system on the resulting buffer. Works for me.

This should duplicate what insert-file-contents does, that is, it should be
the following on 21.5:
(let ((coding-system-for-read
(or
;; #1.
coding-system-for-read
;; #2.
(run-hook-with-args-until-success
'insert-file-contents-pre-hook
filename visit)
;; #3.
(find-file-coding-system-for-read-from-filename filename)
;; #4.
buffer-file-coding-system-for-read
;; #5.
'raw-text))
It’d be more sensible to abstract that out into a separate function in
code-files.el, because tar-mode.el, mcrypt and so on all really should be
calling it.
--
Santa Maradona, priez pour moi!

Aidan> This should duplicate what insert-file-contents does, that
Aidan> is, it should be the following on 21.5:
`insert-file-literally' or `insert-file-contents-literally'.
Except IIRC these may be confused by hooks or something.
--
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.