* url-vars.el (url-uncompressor-alist):
* url-file.el (url-file-find-possibly-compressed-file, url-file):
Recognize .xz compression.
Fixes: debbugs:11839
+2012-10-13 Liam Stitt <stittl@cuug.ab.ca> (tiny change)
+
+ * url-vars.el (url-uncompressor-alist):
+ * url-file.el (url-file-find-possibly-compressed-file, url-file):
+ Recognize .xz compression (Bug#11839).
+
2012-10-13 Chong Yidong <cyd@gnu.org>
* url-http.el (url-http):
'foo.gz' exists, even though the FTP server would happily serve it up
to them."
(let ((scratch nil)
- (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2"))
+ (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2" ".xz"))
(found nil))
(while (and compressed-extensions (not found))
(if (file-exists-p (setq scratch (concat fname (pop compressed-extensions))))
(".uue" "x-uuencoded")
(".hqx" "x-hqx")
(".bz2" "x-bzip2")
+ (".xz" "x-xz")
(_ nil)))
(if (file-directory-p filename)
(".uue" . "x-uuencoded")
(".hqx" . "x-hqx")
(".Z" . "x-compress")
- (".bz2" . "x-bzip2"))
+ (".bz2" . "x-bzip2")
+ (".xz" . "x-xz"))
"An alist of file extensions and appropriate content-transfer-encodings."
:type '(repeat (cons :format "%v"
(string :tag "Extension")