[Gnucash-changes] Revert a change -- continue to use GnuCash APIs.

Derek Atkins warlord at cvs.gnucash.org
Mon Sep 5 10:32:00 EDT 2005


Log Message:
-----------
Revert a change -- continue to use GnuCash APIs.

	* src/backend/file/sixtp-utils.c:  Revert change.. Make sure
	  we still use gnc_setenv and gnc_unsetenv.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/backend/file:
        sixtp-utils.c

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.280
retrieving revision 1.1487.2.281
diff -LChangeLog -LChangeLog -u -r1.1487.2.280 -r1.1487.2.281
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2005-09-05  Derek Atkins  <derek at ihtfp.com>
+
+	* src/backend/file/sixtp-utils.c:  Revert change.. Make sure
+	  we still use gnc_setenv and gnc_unsetenv.
+	
 2005-09-04  Derek Atkins  <derek at ihtfp.com>
 
 	* src/backend/qsf/qsf-backend.c: more a declaration to the top
Index: sixtp-utils.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/backend/file/sixtp-utils.c,v
retrieving revision 1.7.4.6
retrieving revision 1.7.4.7
diff -Lsrc/backend/file/sixtp-utils.c -Lsrc/backend/file/sixtp-utils.c -u -r1.7.4.6 -r1.7.4.7
--- src/backend/file/sixtp-utils.c
+++ src/backend/file/sixtp-utils.c
@@ -392,19 +392,19 @@
 
   old_tz = getenv ("TZ");
   /* FIXME: there's no way to report this error to the caller. */
-  if(setenv("TZ", "UTC", 1) != 0)
+  if(gnc_setenv("TZ", "UTC", 1) != 0)
     PERR ("couldn't switch the TZ.");
   result = mktime (tm);
   if(old_tz)
   {
     /* FIXME: there's no way to report this error to the caller. */
-    if(setenv("TZ", old_tz, 1) != 0)
+    if(gnc_setenv("TZ", old_tz, 1) != 0)
       PERR ("couldn't switch the TZ back.");
   }
   else
   {
     /* FIXME: there's no way to report this error to the caller. */
-    unsetenv("TZ");
+    gnc_unsetenv("TZ");
     if(errno != 0)
       PERR ("couldn't restore the TZ to undefined.");
   }


More information about the gnucash-changes mailing list