fix for that bug linux man reported (UnicodeEncodeError inside raw_input)

This commit is contained in:
Miroslav Stampar 2010-06-23 07:30:15 +00:00
parent 17e228024b
commit ccfc9b0fec

View File

@ -459,7 +459,7 @@ def readInput(message, default=None):
data = default
else:
data = raw_input(message)
data = raw_input(message.encode(conf.dataEncoding))
if not data:
data = default