diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-27 08:34:26 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-27 08:34:26 +0000 |
commit | f66f1acd680e2f3939e61bbf6bd3c36ad9b8448e (patch) | |
tree | a514f5bc1942d29c75b1051755d594b68bc00f8b /src | |
parent | 87e24b01c2163658cd35762d3cb596a35e4271da (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')
-rw-r--r-- | src/passphrase.c | 4 |
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); |