From fd057fd25e400a18cc83ba17ce487c760a78f18d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 27 Sep 2010 14:00:46 +0900 Subject: [PATCH] tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format. --- lisp/ChangeLog | 5 +++++ lisp/tar-mode.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ce0236e34d7..0bbc1648dec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-09-27 Kenichi Handa + + * tar-mode.el (tar-header-block-tokenize): Decode filenames in + "ustar" format. + 2010-09-27 Kenichi Handa * international/mule.el (define-coding-system): Docstring fixed. diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index be9af8e293d..a3f717ff40c 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -286,7 +286,8 @@ write-date, checksum, link-type, and link-name." (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))) -- 2.39.2