fix encoding problems (closes #453)

This commit is contained in:
Romain Bignon 2010-12-16 14:41:42 +01:00
commit 80b45b2cea
4 changed files with 4 additions and 4 deletions

View file

@ -183,7 +183,7 @@ class Boobmsg(ReplApplication):
if text is None:
if self.interactive:
print 'Reading message content from stdin... Type ctrl-D from an empty line to post message.'
text = sys.stdin.read()
text = sys.stdin.read().decode(sys.stdin.encoding)
if self.options.skip_empty and not text.strip():
return