[grisbi-cvs] grisbi/src utils_files.c,1.45,1.46

Gunee guneemwelloeux at users.sourceforge.net
Tue Dec 1 23:34:55 CET 2009


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

Modified Files:
	utils_files.c 
Log Message:
Fixed charset problem with import filenames on Windows

Index: utils_files.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_files.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- utils_files.c	3 Nov 2009 17:32:07 -0000	1.45
+++ utils_files.c	1 Dec 2009 22:34:53 -0000	1.46
@@ -280,7 +280,11 @@
  */
 G_MODULE_EXPORT FILE* utf8_fopen(const gchar* utf8filename,gchar* mode)
 {
-    return fopen(g_filename_from_utf8(utf8filename,-1,NULL,NULL,NULL),mode);
+#ifdef _MSC_VER
+    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);
+#endif
 }
 
 



More information about the cvs mailing list