2005-04-15 [colin] 1.9.6cvs37
authorColin Leroy <colin@colino.net>
Fri, 15 Apr 2005 17:18:17 +0000 (17:18 +0000)
committerColin Leroy <colin@colino.net>
Fri, 15 Apr 2005 17:18:17 +0000 (17:18 +0000)
* src/summaryview.c
Fix 'Save as...' with non-ascii filenames

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/summaryview.c

index 934de22..26d04ac 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-15 [colin]     1.9.6cvs37
+
+       * src/summaryview.c
+               Fix 'Save as...' with non-ascii filenames
+
 2005-04-15 [colin]     1.9.6cvs36
 
        * src/plugins/pgpmime/pgpmime.c
index 8cdfcc6..8b52908 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.105.2.21 -r 1.105.2.22 src/prefs_account.c; ) > 1.9.6cvs34.patchset
 ( cvs diff -u -r 1.105.2.22 -r 1.105.2.23 src/prefs_account.c; ) > 1.9.6cvs35.patchset
 ( cvs diff -u -r 1.1.2.15 -r 1.1.2.16 src/plugins/pgpmime/pgpmime.c; ) > 1.9.6cvs36.patchset
+( cvs diff -u -r 1.395.2.66 -r 1.395.2.67 src/summaryview.c; ) > 1.9.6cvs37.patchset
index a770336..3dab1cd 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=36
+EXTRA_VERSION=37
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 21af1b0..482e6b1 100644 (file)
@@ -3356,11 +3356,11 @@ void summary_save_as(SummaryView *summaryview)
                subst_for_filename(filename);
        }
        if (g_getenv ("G_BROKEN_FILENAMES") &&
-           filename && g_utf8_validate(filename, -1, NULL)) {
+           filename && !g_utf8_validate(filename, -1, NULL)) {
                gchar *oldstr = filename;
                filename = conv_codeset_strdup(filename,
-                                              CS_UTF_8,
-                                              conv_get_locale_charset_str());
+                                              conv_get_locale_charset_str(),
+                                              CS_UTF_8);
                if (!filename) {
                        g_warning("summary_save_as(): faild to convert character set.");
                        filename = g_strdup(oldstr);