Fix copying binary files from zip archives
* lisp/arc-mode.el (archive-copy-file): Prevent any coding conversions when writing output files. (Bug#62091)
This commit is contained in:
parent
679f528b95
commit
4803f97204
1 changed files with 3 additions and 1 deletions
|
@ -1093,7 +1093,9 @@ NEW-NAME."
|
|||
(with-temp-buffer
|
||||
(set-buffer-multibyte nil)
|
||||
(archive--extract-file extractor copy ename)
|
||||
(write-region (point-min) (point-max) write-to))
|
||||
(let ((coding-system-for-write
|
||||
(or coding-system-for-write 'no-conversion)))
|
||||
(write-region (point-min) (point-max) write-to)))
|
||||
(unless (equal copy archive)
|
||||
(delete-file copy))))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue