CVS: sylpheedclaws/sylpheed-claws/src mimeview.c,1.83.2.94,1.83.2.95 textview.c,1.96.2.162,1.96.2.163

[email protected] Sun, 17 Dec 2006 13:36:24 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv17847/src

Modified Files:
      Tag: gtk2
	mimeview.c textview.c 
Log Message:
2006-12-17 [colin]	2.6.1cvs46

	* src/mimeview.c
	* src/textview.c
	* src/gtk/filesel.c
		Correctly convert from/to UTF8/filename encoding
		when loading and saving files. Probably fixes
		bug 1068, 'Claws-Mail uses 100% CPU when looking 
		for a file to attach and is blocked...'

Index: mimeview.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/mimeview.c,v
retrieving revision 1.83.2.94
retrieving revision 1.83.2.95
diff -u -d -r1.83.2.94 -r1.83.2.95
--- mimeview.c	2006/12/14 09:49:17	1.83.2.94
+++ mimeview.c	2006/12/17 13:36:17	1.83.2.95
@@ -1516,7 +1516,8 @@
 
 	g_free(prefs_common.attach_save_dir);
 	g_free(startdir);
-	prefs_common.attach_save_dir = g_strdup(dirname);
+	prefs_common.attach_save_dir = g_filename_to_utf8(dirname,
+					-1, NULL, NULL, NULL);
 }
 
 static MimeInfo *mimeview_get_part_to_use(MimeView *mimeview)
@@ -1589,7 +1590,7 @@
 	filedir = g_path_get_dirname(filename);
 	if (filedir && strcmp(filedir, ".")) {
 		g_free(prefs_common.attach_save_dir);
-		prefs_common.attach_save_dir = g_strdup(filedir);
+		prefs_common.attach_save_dir = g_filename_to_utf8(filedir, -1, NULL, NULL, NULL);
 	}
 
 	g_free(filedir);

Index: textview.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/textview.c,v
retrieving revision 1.96.2.162
retrieving revision 1.96.2.163
diff -u -d -r1.96.2.162 -r1.96.2.163
--- textview.c	2006/12/14 09:49:20	1.96.2.162
+++ textview.c	2006/12/17 13:36:18	1.96.2.163
@@ -2665,7 +2665,7 @@
 	filedir = g_path_get_dirname(filename);
 	if (filedir && strcmp(filedir, ".")) {
 		g_free(prefs_common.attach_save_dir);
-		prefs_common.attach_save_dir = g_strdup(filedir);
+		prefs_common.attach_save_dir = g_filename_to_utf8(filedir, -1, NULL, NULL, NULL);
 	}
 
 	g_free(filedir);