[Gnucash-changes] r13639 - gnucash/trunk - * lib/libqof/backend/file/qsf-backend.c: add <locale.h>

Derek Atkins warlord at cvs.gnucash.org
Wed Mar 15 12:08:09 EST 2006


Author: warlord
Date: 2006-03-15 12:08:08 -0500 (Wed, 15 Mar 2006)
New Revision: 13639
Trac: http://svn.gnucash.org/trac/changeset/13639

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
Log:
	* lib/libqof/backend/file/qsf-backend.c:  add <locale.h>
	  Note:  it think it's probably wrong to set the locale here.



Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-03-15 16:57:29 UTC (rev 13638)
+++ gnucash/trunk/ChangeLog	2006-03-15 17:08:08 UTC (rev 13639)
@@ -1,3 +1,8 @@
+2006-03-15  Derek Atkins  <derek at ihtfp.com>
+
+	* lib/libqof/backend/file/qsf-backend.c:  add <locale.h>
+	  Note:  it think it's probably wrong to set the locale here.
+
 2006-03-15  Christian Stimming <stimming at tuhh.de>
 
 	* src/gnome-utils/Makefile.am: Add more linker flags for

Modified: gnucash/trunk/lib/libqof/backend/file/qsf-backend.c
===================================================================
--- gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-03-15 16:57:29 UTC (rev 13638)
+++ gnucash/trunk/lib/libqof/backend/file/qsf-backend.c	2006-03-15 17:08:08 UTC (rev 13639)
@@ -30,6 +30,7 @@
 #include "qsf-dir.h"
 #include <errno.h>
 #include <sys/stat.h>
+#include <locale.h> /* for setlocale() and LC_ALL */
 
 #define QSF_TYPE_BINARY "binary"
 #define QSF_TYPE_GLIST  "glist"
@@ -1248,6 +1249,9 @@
 {
 	QofBackendProvider *prov;
 
+	/* XXX: Do we REALLY want to do this???  Shouldn't the APP
+	 * have already done this?
+	 */
 	#ifdef ENABLE_NLS
 	setlocale (LC_ALL, "");
 	bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);



More information about the gnucash-changes mailing list