[pass] [PATCH] keepassx2pass: Handle unicode

Thibaut Horel thibaut.horel at gmail.com
Mon Aug 11 07:01:34 CEST 2014


---
 contrib/importers/keepassx2pass.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100755 => 100644 contrib/importers/keepassx2pass.py

diff --git a/contrib/importers/keepassx2pass.py b/contrib/importers/keepassx2pass.py
old mode 100755
new mode 100644
index 5bcdcd2..54d9fbc
--- a/contrib/importers/keepassx2pass.py
+++ b/contrib/importers/keepassx2pass.py
@@ -47,7 +47,7 @@ def password_data(element):
     ret = passwd + "\n" if passwd else "\n"
     for field in ['username', 'url', 'comment']:
         fel = element.find(field)
-        children = [str(e.text or '') + str(e.tail or '') for e in list(fel)]
+        children = [unicode(e.text or '') + unicode(e.tail or '') for e in list(fel)]
         if len(children) > 0:
             children.insert(0, '')
         text = (fel.text or '') + "\n".join(children)
-- 
2.0.4



More information about the Password-Store mailing list