mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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:
parent
227993f481
commit
6c49f1fcd5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user