Previously, I had the following error under WSL/Ubuntu 18.04 with Python 3.6:
+ /usr/bin/python3.6 /mnt/f/svn/buildWSL/test/tools/llvm-objcopy/ELF/Output/preserve-segment-contents.test.tmp.py Traceback (most recent call last): File "/mnt/f/svn/buildWSL/test/tools/llvm-objcopy/ELF/Output/preserve-segment-contents.test.tmp.py", line 8, in <module> input.write('\xDE\xAD\xBE\xEF') UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
Strangely, Python 3.7 on Windows under MINGW32 was fine.
Tested on Python 2.7.16 and 3.7 on Windows. Tested on Python 3.6 on WSL.