diff options
author | Marinus Schraal <foser@gentoo.org> | 2003-12-07 16:28:59 +0000 |
---|---|---|
committer | Marinus Schraal <foser@gentoo.org> | 2003-12-07 16:28:59 +0000 |
commit | f6d084bc6fbc56794a033a3a512e84d62d43906e (patch) | |
tree | 0d677e343f6b02a658bbcbf5cb4711b4af227720 /gnome-base/libghttp/files | |
parent | add patch to fix locale bug (diff) | |
download | gentoo-2-f6d084bc6fbc56794a033a3a512e84d62d43906e.tar.gz gentoo-2-f6d084bc6fbc56794a033a3a512e84d62d43906e.tar.bz2 gentoo-2-f6d084bc6fbc56794a033a3a512e84d62d43906e.zip |
add patch to fix locale bug
Diffstat (limited to 'gnome-base/libghttp/files')
-rw-r--r-- | gnome-base/libghttp/files/digest-libghttp-1.0.9-r4 (renamed from gnome-base/libghttp/files/digest-libghttp-1.0.9-r1) | 0 | ||||
-rw-r--r-- | gnome-base/libghttp/files/libghttp-1.0.9-fixlocale.patch | 42 |
2 files changed, 42 insertions, 0 deletions
diff --git a/gnome-base/libghttp/files/digest-libghttp-1.0.9-r1 b/gnome-base/libghttp/files/digest-libghttp-1.0.9-r4 index 5977c599aa4d..5977c599aa4d 100644 --- a/gnome-base/libghttp/files/digest-libghttp-1.0.9-r1 +++ b/gnome-base/libghttp/files/digest-libghttp-1.0.9-r4 diff --git a/gnome-base/libghttp/files/libghttp-1.0.9-fixlocale.patch b/gnome-base/libghttp/files/libghttp-1.0.9-fixlocale.patch new file mode 100644 index 000000000000..595b431711da --- /dev/null +++ b/gnome-base/libghttp/files/libghttp-1.0.9-fixlocale.patch @@ -0,0 +1,42 @@ +Index: gnome-http/http_req.c +diff -u gnome-http/http_req.c:1.24 gnome-http/http_req.c:1.25 +--- gnome-http/http_req.c:1.24 Sat Dec 2 13:45:35 2000 ++++ gnome-http/http_req.c Sat May 12 16:35:46 2001 +@@ -108,6 +108,7 @@ + int l_headers_len = 0; + int l_rv = 0; + char *l_content = NULL; ++ int l_ver_major, l_ver_minor; + + /* see if we need to jump into the function somewhere */ + if (a_conn->sync == HTTP_TRANS_ASYNC) +@@ -125,21 +126,25 @@ + memset(l_request, 0, 30 + strlen(a_req->resource) + (a_conn->proxy_host ? + (strlen(a_req->host) + 20) : 0)); + /* copy it into the buffer */ ++ l_ver_major = (int)a_req->http_ver; ++ l_ver_minor = ((int)(a_req->http_ver*10.0)) % 10; + if (a_conn->proxy_host) + { + l_request_len = sprintf(l_request, +- "%s %s HTTP/%01.1f\r\n", ++ "%s %s HTTP/%d.%d\r\n", + http_req_type_char[a_req->type], + a_req->full_uri, +- a_req->http_ver); ++ l_ver_major, ++ l_ver_minor); + } + else + { + l_request_len = sprintf(l_request, +- "%s %s HTTP/%01.1f\r\n", ++ "%s %s HTTP/%d.%d\r\n", + http_req_type_char[a_req->type], + a_req->resource, +- a_req->http_ver); ++ l_ver_major, ++ l_ver_minor); + } + /* set the request in the connection buffer */ + http_trans_append_data_to_buf(a_conn, l_request, l_request_len); |