From ccfc9b0fec2f248ddd6871f1e77c6c5437d46881 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 23 Jun 2010 07:30:15 +0000 Subject: [PATCH] fix for that bug linux man reported (UnicodeEncodeError inside raw_input) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index cce0b6e8f..11a1a90c6 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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