Use g_open, g_fopen, g_stat and g_unlink.

Replace open, fopen, stat and unlink by their GLib wrappers so that
files on Windows will be handled with the wide character api.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15407 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler committed 2007-01-21 16:38:42 +00:00
1 parent e79f41ca14
commit 5c126dea86
28 files changed
+107 -103

No files matched your search

@@ -41,6 +41,7 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <libguile.h>
#include <sys/stat.h>
#include <errno.h>
@@ -1312,7 +1313,7 @@ gnc_get_export_filename (SCM choice)
if (!filepath)
return NULL;
rc = stat (filepath, &statbuf);
rc = g_stat (filepath, &statbuf);
/* Check for an error that isn't a non-existant file. */
if (rc != 0 && errno != ENOENT)