2006-02-04 [colin] 2.0.0cvs11
[claws.git] / src / mimeview.c
index 641a7cb64d6259c80ae900d6e95afe7a9662280f..321e8f2ce0e2e5f6513487e548e6a972ce24a2c8 100644 (file)
@@ -1308,11 +1308,10 @@ static void mimeview_drag_data_get(GtkWidget        *widget,
                filename = g_path_get_basename("Unnamed part");
                
 
-
-       tmp = filename;
+       tmp = g_filename_from_utf8(filename, -1, NULL, NULL, NULL);
        
        filename = g_strconcat(get_mime_tmp_dir(), G_DIR_SEPARATOR_S,
-                              filename, NULL);
+                              tmp, NULL);
 
        g_free(tmp);
 
@@ -1320,6 +1319,7 @@ static void mimeview_drag_data_get(GtkWidget          *widget,
                alertpanel_error
                        (_("Can't save the part of multipart message."));
        uriname = g_strconcat("file://", filename, NULL);
+
        gtk_selection_data_set(selection_data, selection_data->target, 8,
                               uriname, strlen(uriname));