raster pushed a commit to branch enlightenment-0.24.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b45d7b9ba3d0fcba7d38842ea678152904bcb268

commit b45d7b9ba3d0fcba7d38842ea678152904bcb268
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Jul 15 14:40:17 2020 +0100

    e askpass - convert text to plain utf8 proeprly for passwd output
    
    @fix
---
 src/bin/e_askpass_main.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_askpass_main.c b/src/bin/e_askpass_main.c
index 3caffe0ea..f16f460db 100644
--- a/src/bin/e_askpass_main.c
+++ b/src/bin/e_askpass_main.c
@@ -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

-- 


Reply via email to