mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Workaround libghttp bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7818 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
39b506f60c
commit
82268e98b3
@ -38,6 +38,7 @@
|
||||
#include <ghttp.h>
|
||||
#include <glib.h>
|
||||
#include <gtk/gtkmain.h>
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -190,6 +191,7 @@ gnc_http_start_request(gnc_http * http, const gchar * uri,
|
||||
GncHTTPRequestCB cb, gpointer user_data) {
|
||||
|
||||
struct request_info * info = g_new0(struct request_info, 1);
|
||||
const gchar *oldlocale;
|
||||
|
||||
info->request = ghttp_request_new();
|
||||
info->uri = g_strdup (uri);
|
||||
@ -208,7 +210,9 @@ gnc_http_start_request(gnc_http * http, const gchar * uri,
|
||||
ghttp_set_sync(info->request, ghttp_async);
|
||||
ghttp_set_type(info->request, ghttp_type_get);
|
||||
ghttp_prepare(info->request);
|
||||
oldlocale = setlocale(LC_NUMERIC, "C");
|
||||
ghttp_process(info->request);
|
||||
setlocale(LC_NUMERIC, oldlocale);
|
||||
|
||||
http->requests = g_list_append(http->requests, info);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user