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
This commit is contained in:
John Mark Bell 2008-10-13 23:32:21 +00:00
parent 227993f481
commit 6c49f1fcd5

View File

@ -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);