ask() writes on output with the right encoding
This commit is contained in:
parent
bd3d8738fc
commit
90f9608ffa
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ class ConsoleApplication(BaseApplication):
|
|||
else:
|
||||
line = getpass.getpass(question)
|
||||
else:
|
||||
self.stdout.write(question)
|
||||
self.stdout.write(question.encode(sys.stdout.encoding or locale.getpreferredencoding()))
|
||||
self.stdout.flush()
|
||||
line = self.stdin.readline()
|
||||
if len(line) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue