changeset 110620:cdab39f69698

tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.
author Kenichi Handa <handa@m17n.org>
date Mon, 27 Sep 2010 14:00:46 +0900
parents 7019133063c8
children c13750cbdbc5 b3326b910a0c
files lisp/ChangeLog lisp/tar-mode.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Sep 27 13:52:56 2010 +0900
+++ b/lisp/ChangeLog	Mon Sep 27 14:00:46 2010 +0900
@@ -1,3 +1,8 @@
+2010-09-27  Kenichi Handa  <handa@m17n.org>
+
+	* tar-mode.el (tar-header-block-tokenize): Decode filenames in
+	"ustar" format.
+
 2010-09-27  Kenichi Handa  <handa@m17n.org>
 
 	* international/mule.el (define-coding-system): Docstring fixed.
--- a/lisp/tar-mode.el	Mon Sep 27 13:52:56 2010 +0900
+++ b/lisp/tar-mode.el	Mon Sep 27 14:00:46 2010 +0900
@@ -286,7 +286,8 @@
             (let* ((size (tar-parse-octal-integer
                           string tar-size-offset tar-time-offset))
                    ;; -1 so as to strip the terminating 0 byte.
-                   (name (buffer-substring pos (+ pos size -1)))
+		   (name (decode-coding-string 
+			  (buffer-substring pos (+ pos size -1)) coding))
                    (descriptor (tar-header-block-tokenize
                                 (+ pos (tar-roundup-512 size))
 				coding)))