Add setlocale() call (fix #1740)

This commit is contained in:
Nicolas Williams authored and Nico Williams committed 2023-09-06 14:05:10 -05:00
1 parent ac3b70d3a1
commit 11c528d04d
3 files changed
+31 -5

No files matched your search

+7
View File
@@ -2,6 +2,9 @@
#include <ctype.h>
#include <errno.h>
#include <libgen.h>
#ifdef HAVE_SETLOCALE
#include <locale.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -319,6 +322,10 @@ int main(int argc, char* argv[]) {
jv ARGS = jv_array(); /* positional arguments */
jv program_arguments = jv_object(); /* named arguments */
#ifdef HAVE_SETLOCALE
(void) setlocale(LC_ALL, "");
#endif
#ifdef WIN32
jv_tsd_dtoa_ctx_init();
fflush(stdout);