aboutsummaryrefslogtreecommitdiff
path: root/src/passphrase.c
diff options
context:
space:
mode:
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);