fix encoding problems (closes #453)
This commit is contained in:
parent
fdf09c4ad0
commit
80b45b2cea
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue