Skip to content

Commit

Permalink
hopefully fix #49
Browse files Browse the repository at this point in the history
dont rely on sys.stdin.encoding to get the encoding to use for filenames.
use sys.getfilesystemencoding(), defaulting to latin1
  • Loading branch information
wbsoft committed Nov 14, 2015
1 parent 704a2ee commit 88b8d97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ly/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def parse_command_line():
args = iter(sys.argv[1:])
else:
# python 2 - arguments are bytes, decode them
args = (a.decode(sys.stdin.encoding) for a in sys.argv[1:])
fsenc = sys.getfilesystemencoding() or 'latin1'
args = (a.decode(fsenc) for a in sys.argv[1:])

opts = Options()
commands = []
Expand Down

0 comments on commit 88b8d97

Please sign in to comment.