Commit 8ca8fde8 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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.
parent 5bdd4959
2014-10-07 Eli Zaretskii <eliz@gnu.org>
* url-http.el (url-http-create-request): Recheck zlib availability
on windows-nt each time it might be required. (Bug#18650)
2014-09-28 Ulf Jasper <ulf.jasper@web.de>
* url-gw.el (url-open-stream): New optional parameter
......
......@@ -313,7 +313,14 @@ request.")
(concat
"From: " url-personal-mail-address "\r\n"))
;; Encodings we understand
(if url-mime-encoding-string
(if (or url-mime-encoding-string
;; MS-Windows loads zlib dynamically, so recheck
;; in case they made it available since
;; initialization in url-vars.el.
(and (eq 'system-type 'windows-nt)
(fboundp 'zlib-available-p)
(zlib-available-p)
(setq url-mime-encoding-string "gzip")))
(concat
"Accept-encoding: " url-mime-encoding-string "\r\n"))
(if url-mime-charset-string
......
2014-10-07 Eli Zaretskii <eliz@gnu.org>
* decompress.c (init_zlib_functions): Move the message about zlib
being unavailable from here...
(Fzlib_decompress_region): ...to here. (Bug#18650)
2014-10-07 Dmitry Antipov <dmantipov@yandex.ru>
 
* font.c (Ffont_get_glyphs): Use validate_subarray and fix
......
......@@ -60,10 +60,7 @@ init_zlib_functions (void)
HMODULE library = w32_delayed_load (Qzlib_dll);
if (!library)
{
message1 ("zlib library not found");
return false;
}
return false;
LOAD_ZLIB_FN (library, inflateInit2_);
LOAD_ZLIB_FN (library, inflate);
......@@ -150,7 +147,10 @@ This function can be called only in unibyte buffers. */)
if (!zlib_initialized)
zlib_initialized = init_zlib_functions ();
if (!zlib_initialized)
return Qnil;
{
message1 ("zlib library not found");
return Qnil;
}
#endif
/* This is a unibyte buffer, so character positions and bytes are
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment