Bug 796989 - some date/time does not honor user locale (bis).

Set the locale for C so that it matches what's set for C++.
This commit is contained in:
John Ralls 2019-02-19 09:48:01 -08:00
parent 6f5be2a473
commit 11083d6052

View File

@ -22,6 +22,7 @@
#include <config.h> #include <config.h>
#include <locale.h>
#include <glib.h> #include <glib.h>
#include "qof.h" #include "qof.h"
@ -35,6 +36,7 @@ int
main (int argc, main (int argc,
char *argv[]) char *argv[])
{ {
setlocale (LC_ALL, "");
qof_init(); /* Initialize the GObject system */ qof_init(); /* Initialize the GObject system */
qof_log_init_filename_special("stderr"); /* Init the log system */ qof_log_init_filename_special("stderr"); /* Init the log system */
g_test_init ( &argc, &argv, NULL ); /* initialize test program */ g_test_init ( &argc, &argv, NULL ); /* initialize test program */