[grisbi-cvs] grisbi/src utils_files.c,1.48,1.49

Gunee guneemwelloeux at users.sourceforge.net
Wed Jan 20 14:05:11 CET 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18240

Modified Files:
	utils_files.c 
Log Message:
Fixed CSV report export on Windows MSVC (bug 667, bug 876)

Index: utils_files.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_files.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- utils_files.c	3 Jan 2010 11:21:26 -0000	1.48
+++ utils_files.c	20 Jan 2010 13:05:08 -0000	1.49
@@ -314,6 +314,8 @@
 G_MODULE_EXPORT FILE* utf8_fopen(const gchar* utf8filename,gchar* mode)
 {
 #ifdef _MSC_VER
+	if(!strncmp(mode, "w+x", 3))
+		mode = "w+";
     return fopen(g_locale_from_utf8(utf8filename, -1, NULL, NULL, NULL),mode);
 #else
 	return fopen(g_filename_from_utf8(utf8filename, -1, NULL, NULL, NULL),mode);



More information about the cvs mailing list