[Python-Dev] status of development documentation
Tim Peters
tim.peters at gmail.com
Sat Dec 24 17:08:50 CET 2005
[Samuele Pedroni]
> PEP263:
>
> """
> To aid with platforms such as Windows, which add Unicode BOM marks
> to the beginning of Unicode files, the UTF-8 signature
> '\xef\xbb\xbf' will be interpreted as 'utf-8' encoding as well
> (even if no magic encoding comment is given).
> """
So test_pep263 is almost certainly failing for a related reason (and
I'll skip noting the irony that this was for the benefit of Windows
;-)). I didn't step through any code under the debugger that looked
like it was _trying_ to special-case '\xef\xbb\xbf', so this still
needs someone who knows which path(s) the code is supposed to take.
I'll help, but I don't have time to drive this.
test_pep263
test test_pep263 failed -- Traceback (most recent call last):
File "C:\Code\python\lib\test\test_pep263.py", line 12, in test_pep263
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
AssertionError: '\xc3\xb0\xc3\x89\xc3\x94\xc3\x8f\xc3\x8e' !=
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
More information about the Python-Dev
mailing list