changeset 37634:cf324803e6ca

(tar-extract): Pay attention to the value of coding-system-for-read, if it is non-nil.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 09 May 2001 15:34:53 +0000
parents fa0afa395c91
children dd0dcc3962fe
files lisp/tar-mode.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tar-mode.el	Wed May 09 15:21:44 2001 +0000
+++ b/lisp/tar-mode.el	Wed May 09 15:34:53 2001 +0000
@@ -716,10 +716,11 @@
 		;; We need to mimic the parts of insert-file-contents
 		;; which determine the coding-system and decode the text.
 		(let ((coding
-		       (and set-auto-coding-function
-			    (save-excursion
-			      (funcall set-auto-coding-function
-				       name (- (point-max) (point))))))
+		       (or coding-system-for-read
+			   (and set-auto-coding-function
+				(save-excursion
+				  (funcall set-auto-coding-function
+					   name (- (point-max) (point)))))))
 		      (multibyte enable-multibyte-characters)
 		      (detected (detect-coding-region
 				 1 (min 16384 (point-max)) t)))