<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/windows/fmode.c, branch 2.2.3</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.3</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.3'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-07-22T18:21:54+00:00</updated>
<entry>
<title>mpy-cross: Use binary file translation mode for creating mpy files on windows</title>
<updated>2016-07-22T18:21:54+00:00</updated>
<author>
<name>stijn</name>
<email>stijn@ignitron.net</email>
</author>
<published>2016-07-22T09:54:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9bdb82ef6b3147662ffc6b6435c6bd376c60e19e'/>
<id>urn:sha1:9bdb82ef6b3147662ffc6b6435c6bd376c60e19e</id>
<content type='text'>
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().
</content>
</entry>
</feed>
