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

Gunee guneemwelloeux at users.sourceforge.net
Tue Dec 1 23:36:47 CET 2009


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

Modified Files:
      Tag: version_0_6_0-new_gsb_real
	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.45.2.1
diff -u -d -r1.45 -r1.45.2.1
--- utils_files.c	3 Nov 2009 17:32:07 -0000	1.45
+++ utils_files.c	1 Dec 2009 22:36:45 -0000	1.45.2.1
@@ -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