2006-01-31 [cleroy] 2.0.0cvs3
[claws.git] / src / plugins / pgpcore / passphrase.c
index 4535fd67fe297adddd886165cc16567bbf47c742..93a3b776cd36395029b560c024ce9ca8f1d99098 100644 (file)
@@ -197,7 +197,8 @@ try_again:
     if (pass_ack) {
         const gchar *entry_text;
         entry_text = gtk_entry_get_text(GTK_ENTRY(pass_entry));
-        if (entry_text) /* Hmmm: Do we really need this? */
+       the_passphrase = g_locale_from_utf8(entry_text, -1, NULL, NULL, NULL);
+        if (the_passphrase == NULL) 
             the_passphrase = g_strdup (entry_text);
     }
     gtk_widget_destroy (window);