Dag Sverre Seljebotn, 24.03.2010 08:20:
> Stefan Behnel wrote:
>> I only noticed recently that the codecs module doesn't support universal
>> newline parsing. This means that parsing source files with DOS line endings
>> will currently lead to this error:
>>
>>      C:\Python31\hello.pyx:1:23: Unrecognized character
>>
>
> Totally amazing that we haven't got complaints about this before from
> Windows users.

Same from here.


> Is this something that's been there all the time or the
> result of a recent change?

Ever since I implemented source encoding support, and that was long ago, 
certainly before 0.12 came out.

The funny thing is that I only became aware of this due to a test failure 
in Hudson on the msvc docstrings test, which had been added with DOS line 
endings. I was puzzled enough to see this test fail on a Linux machine, 
while I can't reproduce this on my (Linux-)laptop at all. So I can only 
guess that this depends more on the Python build or some other 
environmental factor.

Anyway, the error message above was taken from a recent post on c.l.py, 
pointing at the end of a totally innocent looking source line (first in the 
file), so for now I assume that this really impacts at least some users.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to