1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.

This commit is contained in:
Kenichi Handa 2010-09-27 14:00:46 +09:00
parent 368b354442
commit fd057fd25e
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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)))