New submission from AndreyTomsk:

File read operation fails when gets specific cyrillic symbol. Tested with 

testFile = open('ResourceStrings.rc', 'r')
for line in testFile:

Exception message:
Traceback (most recent call last):
  File "", line 6, in <module>
    for line in testFile:
line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 24: 
character maps to <undefined>

components: IO, Unicode, Windows
files: ResourceStrings.rc
messages: 277206
nosy: AndreyTomsk, ezio.melotti, haypo, paul.moore, steve.dower, tim.golden, 
priority: normal
severity: normal
status: open
title: Unable to read simple text file
type: behavior
versions: Python 3.5, Python 3.6
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to