aboutsummaryrefslogtreecommitdiff
path: root/src/passphrase.c
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 /src/passphrase.c
parent87e24b01c2163658cd35762d3cb596a35e4271da (diff)
convert PGP passphrase into locale encoding.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@936 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/passphrase.c')
-rw-r--r--src/passphrase.c4
1 files changed, 3 insertions, 1 deletions
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);