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

John Ralls jralls at code.gnucash.org
Tue Feb 19 12:50:02 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/11083d60 (commit)
	from  https://github.com/Gnucash/gnucash/commit/6f5be2a4 (commit)



commit 11083d60520bfda3c301f495c0a6131fda8bba85
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Feb 19 09:48:01 2019 -0800

    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++.

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



Summary of changes:
 libgnucash/engine/test/test-qof.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the gnucash-changes mailing list