Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccfc9b0

Browse files
committed
fix for that bug linux man reported (UnicodeEncodeError inside raw_input)
1 parent 17e2280 commit ccfc9b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def readInput(message, default=None):
459459

460460
data = default
461461
else:
462-
data = raw_input(message)
462+
data = raw_input(message.encode(conf.dataEncoding))
463463

464464
if not data:
465465
data = default

0 commit comments

Comments
 (0)