Author: btami
Date: 2005-05-09 06:31:23 -0500 (Mon, 09 May 2005)
New Revision: 7539

Modified:
   trunk/gnue-common/src/datasources/GLoginHandler.py
Log:
encode labels for getpass

Modified: trunk/gnue-common/src/datasources/GLoginHandler.py
===================================================================
--- trunk/gnue-common/src/datasources/GLoginHandler.py  2005-05-07 17:55:48 UTC 
(rev 7538)
+++ trunk/gnue-common/src/datasources/GLoginHandler.py  2005-05-09 11:31:23 UTC 
(rev 7539)
@@ -24,6 +24,7 @@
 import getpass
 
 from gnue.common.apps import errors
+from gnue.common.apps import i18n
 
 
 # =============================================================================
@@ -206,7 +207,7 @@
             result [name] = default
           else:
             if ftype == 'password':
-              value = getpass.getpass ("  %s: " % label)
+              value = getpass.getpass ("  %s: " % 
label.encode(i18n.getencoding ()))
             else:
               # raw_input print's it's argument to stderr, so we have to print
               # the label manually here since stderr might be redirected



_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to