commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7539 - trunk/gnue-common/src/datasources


From: btami
Subject: [gnue] r7539 - trunk/gnue-common/src/datasources
Date: Mon, 9 May 2005 06:31:26 -0500 (CDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]