Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Auto detect coding-system of archived source.
Browse files Browse the repository at this point in the history
  • Loading branch information
buzztaiki committed May 9, 2012
1 parent 0ec5462 commit 5abb727
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/lisp/malabar-reflection.el
Expand Up @@ -151,8 +151,9 @@
(setq buffer-file-name (expand-file-name (concat archive ":" file-name)))
(setq buffer-file-truename (file-name-nondirectory file-name))
(let ((exit-code
(archive-extract-by-stdout archive file-name
archive-zip-extract)))
(let ((coding-system-for-read 'undecided))
(archive-extract-by-stdout archive file-name
archive-zip-extract))))
(if (and (numberp exit-code) (zerop exit-code))
(progn (malabar-mode)
(goto-char (point-min))
Expand Down

0 comments on commit 5abb727

Please sign in to comment.