e askpass - convert text to plain utf8 proeprly for passwd output

@fix
This commit is contained in:
Carsten Haitzler 2020-07-15 14:40:17 +01:00
parent 5242f90ea1
commit b45d7b9ba3
1 changed files with 9 additions and 1 deletions

View File

@ -18,7 +18,15 @@ static void
password_out(void)
{
const char *str = elm_object_text_get(entry);
if (str) printf("%s\n", str);
if (str)
{
char *plain = elm_entry_markup_to_utf8(str);
if (plain)
{
printf("%s\n", plain);
free(plain);
}
}
}
static void