Skip to content

Commit

Permalink
try default filesystem encoding when writing temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Dec 9, 2018
1 parent 912537d commit fd7d4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/gateways/disk/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def compile_multiple_pyc(python_exe_full_path, py_full_paths, pyc_full_paths, si
try:
for f in py_full_paths:
if hasattr(f, 'encode'):
f = f.encode('utf-8')
f = f.encode(sys.getfilesystemencoding())
os.write(fd, f + b"\n")
os.close(fd)

Expand Down

0 comments on commit fd7d4c6

Please sign in to comment.