Eryk Sun added the comment:
zz2_err.py uses LF line endings instead of CRLF line endings. This is
incompatible with text mode I/O in Microsoft C, which leads to undefined
behavior. See issue 20844 and issue 27797.
--
nosy: +eryksun
resolution: -> duplicate
stage: -> resolved
status:
New submission from Michal Niklas :
I have strange error with source encoding header. I usually use it from
template which looks like:
#!/usr/bin/env python
# -*- coding: utf8 -*-
This works well on Linux machines with Python 2.x and 3.x, but on Windows
machines it works well only with Python