forked from madprime/python-gedcom
-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Describe the bug
I have an example file, where the encoding itself, crashing the loading process.
gedcom_parser.parse_file(file_path, False) # Disable strict parsing
This line receving this crash
one_person_myheritage.rename to ged.log
The example file are attached.
To Reproduce
- Load the one_person_myheritage.rename to ged.log
- rename file to one_person_myheritage.get
Run this python lines:
gedcom_parser = Parser()
gedcom_parser.parse_file( "one_person_myheritage.ged" , False) # Disable strict parsing
The exception are
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 206: invalid continuation byte
Expected behavior
When using False parameter, there is no reason for this exception.
Additional context
Expected bugfix are in line
last_element = self.__parse_line(line_number, line.decode('utf-8-sig'), last_element, strict)
in function def parse(self, gedcom_stream, strict=True):
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working