mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-17 00:48:25 +01:00
Fix unspecified stdin encoding.
This commit is contained in:
parent
e543eeaf58
commit
2040928e28
1 changed files with 2 additions and 1 deletions
|
@ -118,8 +118,9 @@ def convert_command_line_to_utf8():
|
|||
try:
|
||||
argv = []
|
||||
|
||||
encoding = sys.stdin.encoding or sys.getdefaultencoding()
|
||||
for arg in sys.argv:
|
||||
argv.append(arg.decode(sys.stdin.encoding, "replace"))
|
||||
argv.append(arg.decode(encoding, "replace"))
|
||||
|
||||
return argv
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in a new issue