Skip to content
Snippets Groups Projects
Commit 9bdb82ef authored by stijn's avatar stijn Committed by Paul Sokolovsky
Browse files

mpy-cross: Use binary file translation mode for creating mpy files on windows

This is a fix for https://github.com/micropython/micropython/issues/2209:
by default a file created using open() uses text translation mode so writing
\n to it will result in the file having \r\n. This is obviously problematic
for binary .mpy files, so provide functions for setting the open mode
and use binary mode in mpy-cross' main().
parent 43473372
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment