aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-27 08:34:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-27 08:34:26 +0000
commitf66f1acd680e2f3939e61bbf6bd3c36ad9b8448e (patch)
treea514f5bc1942d29c75b1051755d594b68bc00f8b
parent87e24b01c2163658cd35762d3cb596a35e4271da (diff)
convert PGP passphrase into locale encoding.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@936 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/passphrase.c4
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 765f57eb..5e4654d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-01-27
+ * src/passphrase.c: convert passphrase into locale encoding.
+
+2006-01-27
+
* src/gtkutils.[ch]
src/summaryview.c: when deleting a collapsed thread, all the
messages in the thread will be removed.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index e69eb8f7..bf0666c2 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2006-01-27
+ * src/passphrase.c: パスフレーズをロケールエンコーディングに変換する
+ ようにした。
+
+2006-01-27
+
* src/gtkutils.[ch]
src/summaryview.c: 閉じたスレッドを削除するとそのスレッドのすべての
メッセージを削除するようにした。
diff --git a/src/passphrase.c b/src/passphrase.c
index 4a5494bb..40a3bb1e 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -185,7 +185,9 @@ passphrase_mbox(const gchar *uid_hint, const gchar *pass_hint, gint prev_bad)
if (pass_ack) {
const gchar *entry_text;
entry_text = gtk_entry_get_text(GTK_ENTRY(pass_entry));
- the_passphrase = g_strdup(entry_text);
+ the_passphrase = g_locale_from_utf8(entry_text, -1, NULL, NULL, NULL);
+ if (!the_passphrase)
+ the_passphrase = g_strdup(entry_text);
}
gtk_widget_destroy(window);