+2011-04-08 [colin] 3.7.8cvs73
+
+ * src/gtk/filesel.c
+ Fix bug #2393, "Crashes and rendering problems in the "Save as" menu
+ caused by attachments with extended chars in the file name". Patch
+ derived from a patch bt Fabien Keil
+
2011-04-05 [wwp] 3.7.8cvs72
* src/compose.c
( cvs diff -u -r 1.382.2.568 -r 1.382.2.569 src/compose.c; ) > 3.7.8cvs70.patchset
( cvs diff -u -r 1.20.2.76 -r 1.20.2.77 src/common/utils.h; ) > 3.7.8cvs71.patchset
( cvs diff -u -r 1.382.2.569 -r 1.382.2.570 src/compose.c; ) > 3.7.8cvs72.patchset
+( cvs diff -u -r 1.2.2.42 -r 1.2.2.43 src/gtk/filesel.c; ) > 3.7.8cvs73.patchset
g_free(realpath);
realpath = g_strdup(get_home_dir());
}
- tmp = NULL;
if (g_utf8_validate(realpath, -1, NULL))
- tmp = g_filename_from_utf8(realpath, -1, NULL, NULL, NULL);
- if (tmp == NULL)
- tmp = g_strdup(realpath);
- gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(chooser), tmp);
- g_free(tmp);
+ gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(chooser),
+ realpath);
if (action == GTK_FILE_CHOOSER_ACTION_SAVE) {
- tmp = NULL;
if (g_utf8_validate(filename, -1, NULL))
- tmp = g_filename_from_utf8(filename, -1, NULL, NULL, NULL);
- if (tmp == NULL)
- tmp = g_strdup(filename);
- gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(chooser), tmp);
- g_free(tmp);
+ gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(chooser),
+ filename);
}
g_free(realpath);
} else {