Mercurial > emacs
changeset 110621:c13750cbdbc5
tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 27 Sep 2010 14:01:48 +0900 |
parents | 75fb6d1241c3 (current diff) cdab39f69698 (diff) |
children | a14b02ae1413 |
files | |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Mon Sep 27 13:53:47 2010 +0900 +++ b/lisp/ChangeLog Mon Sep 27 14:01:48 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:53:47 2010 +0900 +++ b/lisp/tar-mode.el Mon Sep 27 14:01:48 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)))