summaryrefslogtreecommitdiff
path: root/lisp/tar-mode.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-09-28 01:25:27 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-09-28 01:25:27 +0200
commit95b6d681b1121e1be8955aa3f79dd39098edf4cf (patch)
tree445d016578b131a7435fac83fc1fbd49f3a45877 /lisp/tar-mode.el
parent9f2d52e714dfa161c9c9393075a3bcdf056a4ac8 (diff)
parent0cceab3d5942aef608dc33be4616b77206201115 (diff)
downloademacs-95b6d681b1121e1be8955aa3f79dd39098edf4cf.tar.gz
Merge changes from emacs-23 branch.
Diffstat (limited to 'lisp/tar-mode.el')
-rw-r--r--lisp/tar-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index f8b9cf09fba..ba3cb862bf2 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -285,7 +285,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)))