diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |