From a2396edde4f9746cfeb416ece9e20916de3216a4 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 29 Sep 2016 22:37:10 +0100 Subject: complete transition to locale independant core operation The netsurf core no longer uses any locale dependant operations excepting the mall number or cases where such operations are explicitly wanted. the netsurf_init now calls setlocale with the empty string and lets the c library setup as per its specific implementation. any core functionality that specificaly processes ascii text must use the utils/ascii.h header to do so. --- desktop/netsurf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index f1daeab05..d129ef72f 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -212,12 +212,11 @@ nserror netsurf_init(const char *store_path) if (ret != NSERROR_OK) return ret; - ret = mimesniff_init(); if (ret != NSERROR_OK) return ret; - setlocale(LC_ALL, "C"); + setlocale(LC_ALL, ""); /* initialise the fetchers */ ret = fetcher_init(); -- cgit v1.2.3