Hack workaround for broken libcurls who obey ALL_PROXY for file: URLs. See comment.

svn path=/trunk/netsurf/; revision=10394
This commit is contained in:
Rob Kendrick 2010-04-13 18:41:19 +00:00
parent a4793a3058
commit f75d630d25

View File

@ -384,6 +384,17 @@ int main(int argc, char** argv)
char options[PATH_MAX];
char messages[PATH_MAX];
/* Some modern distributions can set ALL_PROXY/all_proxy if configured
* to by the user. Due to a bug in many versions of libcurl
* (including the one shipped in Ubuntu 10.04 LTS), this also takes
* effect on file:// URLs, meaning that NetSurf cannot load its
* default CSS file. Given all examples of distributions I've checked
* also set http_proxy and friends, we can safely unset these.
*/
unsetenv("ALL_PROXY");
unsetenv("all_proxy");
gtk_init(&argc, &argv);
/* set standard error to be non-buffering */