From 6c49f1fcd5ccaf7781674d8a5bd0a61b4c3c67b3 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 13 Oct 2008 23:32:21 +0000 Subject: r4153 was mostly right. It does help, however, if you actually force the locale to "C" in the first place. The issues listed in the commit log for r4153 still apply. This should fix the core's parsing of floats in locales that use something other than '.' as the decimal separator. svn path=/trunk/netsurf/; revision=5568 --- desktop/netsurf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop/netsurf.c') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 822f81a77..7342ac443 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -18,6 +18,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -110,6 +111,7 @@ void netsurf_init(int argc, char** argv) lib_init(); url_init(); gui_init(argc, argv); + setlocale(LC_ALL, "C"); fetch_init(); fetchcache_init(); gui_init2(argc, argv); -- cgit v1.2.3