diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-10-13 23:32:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-10-13 23:32:21 +0000 |
commit | 6c49f1fcd5ccaf7781674d8a5bd0a61b4c3c67b3 (patch) | |
tree | 87aa7fb943bd27e53fcc4fefc7a1f33a406f7243 /desktop/netsurf.c | |
parent | 227993f481b6fd7db74bc348e87ffebcbd3fc158 (diff) | |
download | netsurf-6c49f1fcd5ccaf7781674d8a5bd0a61b4c3c67b3.tar.gz netsurf-6c49f1fcd5ccaf7781674d8a5bd0a61b4c3c67b3.tar.bz2 |
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
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r-- | desktop/netsurf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <locale.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> @@ -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); |