Maybe finally fix locale issues

This commit is contained in:
luboslenco
2026-01-03 10:54:50 +01:00
parent f5a4cda0ab
commit 5567284c9d
3 changed files with 15 additions and 5 deletions
-3
View File
@@ -26,7 +26,6 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#ifdef IRON_WINDOWS
#include <Windows.h>
#endif
@@ -723,7 +722,6 @@ void _iron_init(iron_window_options_t *ops) {
ops->visible = enable_window;
ops->color_bits = 32;
iron_init(ops);
setlocale(LC_NUMERIC, "C");
iron_random_init((int)(iron_time() * 1000));
iron_set_cut_callback(_cut, NULL);
iron_set_copy_callback(_copy, NULL);
@@ -1332,7 +1330,6 @@ i32 iron_sys_command(string_t *cmd) {
#else
int result = system(cmd);
#endif
setlocale(LC_NUMERIC, "C"); // Restore locale!
return result;
}