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:
|
else:
|
||||||
line = getpass.getpass(question)
|
line = getpass.getpass(question)
|
||||||
else:
|
else:
|
||||||
self.stdout.write(question)
|
self.stdout.write(question.encode(sys.stdout.encoding or locale.getpreferredencoding()))
|
||||||
self.stdout.flush()
|
self.stdout.flush()
|
||||||
line = self.stdin.readline()
|
line = self.stdin.readline()
|
||||||
if len(line) == 0:
|
if len(line) == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue