[grisbi-cvs] grisbi/win32 win32utils.c,1.14,1.15

Gunee guneemwelloeux at users.sourceforge.net
Sat Jan 30 16:06:54 CET 2010


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

Modified Files:
	win32utils.c 
Log Message:
Win MSVC : making sure correct encoding is used for location of gtkrc file

Index: win32utils.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/win32/win32utils.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- win32utils.c	29 Jan 2010 18:03:33 -0000	1.14
+++ win32utils.c	30 Jan 2010 15:06:51 -0000	1.15
@@ -798,9 +798,14 @@
 } /* }}}  */
 
 void win32_parse_gtkrc (const gchar * basename){
+	gchar * out;
 	gchar * gtkrc_file = g_strdelimit(g_strconcat(g_path_get_dirname ( grisbi_exe_path  ),"\\",basename,NULL),
                         "\\",
                         '/');
+	out = g_locale_to_utf8(gtkrc_file, -1, NULL, NULL, NULL);
+	g_free ( gtkrc_file);
+	gtkrc_file = g_filename_from_utf8(out, -1, NULL, NULL, NULL);
+	g_free (out);
 	gtk_rc_parse(gtkrc_file);
 	g_free ( gtkrc_file );
 }



More information about the cvs mailing list