diff options
| author | Eli Zaretskii | 2014-10-07 20:18:07 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-10-07 20:18:07 +0300 |
| commit | 8ca8fde8a2f94e9446efc5aa68020c0badeecb4d (patch) | |
| tree | 683b09b987096c460f324a7603ecccbe8a219f3c | |
| parent | 5bdd495965548f6b754f204080f4f1e6bec622ed (diff) | |
| download | emacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.tar.gz emacs-8ca8fde8a2f94e9446efc5aa68020c0badeecb4d.zip | |
Fix bug #18650 with warning about zlib when loading url-vars.el.
src/decompress.c (init_zlib_functions): Move the message about zlib
being unavailable from here...
(Fzlib_decompress_region): ...to here.
lisp/url/url-http.el (url-http-create-request): Recheck zlib availability
on windows-nt each time it might be required.
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 9 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/decompress.c | 10 |
4 files changed, 24 insertions, 6 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 81096cfb800..21a779f85b3 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * url-http.el (url-http-create-request): Recheck zlib availability | ||
| 4 | on windows-nt each time it might be required. (Bug#18650) | ||
| 5 | |||
| 1 | 2014-09-28 Ulf Jasper <ulf.jasper@web.de> | 6 | 2014-09-28 Ulf Jasper <ulf.jasper@web.de> |
| 2 | 7 | ||
| 3 | * url-gw.el (url-open-stream): New optional parameter | 8 | * url-gw.el (url-open-stream): New optional parameter |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 9a874c25ce0..f9fbea1ba74 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -313,7 +313,14 @@ request.") | |||
| 313 | (concat | 313 | (concat |
| 314 | "From: " url-personal-mail-address "\r\n")) | 314 | "From: " url-personal-mail-address "\r\n")) |
| 315 | ;; Encodings we understand | 315 | ;; Encodings we understand |
| 316 | (if url-mime-encoding-string | 316 | (if (or url-mime-encoding-string |
| 317 | ;; MS-Windows loads zlib dynamically, so recheck | ||
| 318 | ;; in case they made it available since | ||
| 319 | ;; initialization in url-vars.el. | ||
| 320 | (and (eq 'system-type 'windows-nt) | ||
| 321 | (fboundp 'zlib-available-p) | ||
| 322 | (zlib-available-p) | ||
| 323 | (setq url-mime-encoding-string "gzip"))) | ||
| 317 | (concat | 324 | (concat |
| 318 | "Accept-encoding: " url-mime-encoding-string "\r\n")) | 325 | "Accept-encoding: " url-mime-encoding-string "\r\n")) |
| 319 | (if url-mime-charset-string | 326 | (if url-mime-charset-string |
diff --git a/src/ChangeLog b/src/ChangeLog index b57c76d5e3f..7a6b38f3b90 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-10-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * decompress.c (init_zlib_functions): Move the message about zlib | ||
| 4 | being unavailable from here... | ||
| 5 | (Fzlib_decompress_region): ...to here. (Bug#18650) | ||
| 6 | |||
| 1 | 2014-10-07 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2014-10-07 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 8 | ||
| 3 | * font.c (Ffont_get_glyphs): Use validate_subarray and fix | 9 | * font.c (Ffont_get_glyphs): Use validate_subarray and fix |
diff --git a/src/decompress.c b/src/decompress.c index cd8a3d1e962..24ce852245c 100644 --- a/src/decompress.c +++ b/src/decompress.c | |||
| @@ -60,10 +60,7 @@ init_zlib_functions (void) | |||
| 60 | HMODULE library = w32_delayed_load (Qzlib_dll); | 60 | HMODULE library = w32_delayed_load (Qzlib_dll); |
| 61 | 61 | ||
| 62 | if (!library) | 62 | if (!library) |
| 63 | { | 63 | return false; |
| 64 | message1 ("zlib library not found"); | ||
| 65 | return false; | ||
| 66 | } | ||
| 67 | 64 | ||
| 68 | LOAD_ZLIB_FN (library, inflateInit2_); | 65 | LOAD_ZLIB_FN (library, inflateInit2_); |
| 69 | LOAD_ZLIB_FN (library, inflate); | 66 | LOAD_ZLIB_FN (library, inflate); |
| @@ -150,7 +147,10 @@ This function can be called only in unibyte buffers. */) | |||
| 150 | if (!zlib_initialized) | 147 | if (!zlib_initialized) |
| 151 | zlib_initialized = init_zlib_functions (); | 148 | zlib_initialized = init_zlib_functions (); |
| 152 | if (!zlib_initialized) | 149 | if (!zlib_initialized) |
| 153 | return Qnil; | 150 | { |
| 151 | message1 ("zlib library not found"); | ||
| 152 | return Qnil; | ||
| 153 | } | ||
| 154 | #endif | 154 | #endif |
| 155 | 155 | ||
| 156 | /* This is a unibyte buffer, so character positions and bytes are | 156 | /* This is a unibyte buffer, so character positions and bytes are |