[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread STINNER Victor
STINNER Victor added the comment: $ hexdump -C 1.txt ec 0d 0a |...| 0003 This file is *not* encoded to utf8. -- nosy: +haypo ___ Python tracker

[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread Roman Gershman
New submission from Roman Gershman : The following code fails to parse the attached file: #!/usr/bin/python3.1 if __name__ == '__main__': f = open("c:\\1.txt", mode ='r', encoding='utf-8') for line in f: print (line) -- components: Unicode files: 1.txt messages: 106195 nosy: Ro