dos33: workaround to ignore non-ascii characters. fails on beagle bros 'Alpha Plot.dsk'

This commit is contained in:
Rob McMullen 2017-07-11 16:13:54 -07:00
parent d8d76a91bf
commit 36a6dd69fc
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class Dos33Dirent(Dirent):
self.parse_raw_dirent(image, bytes)
def __str__(self):
return "File #%-2d (%s) %03d %-30s %03d %03d" % (self.file_num, self.summary, self.num_sectors, self.filename.decode("utf-8"), self.track, self.sector)
return "File #%-2d (%s) %03d %-30s %03d %03d" % (self.file_num, self.summary, self.num_sectors, self.filename.decode("ascii", errors='ignore'), self.track, self.sector)
def __eq__(self, other):
return self.__class__ == other.__class__ and self.filename == other.filename and self.track == other.track and self.sector == other.sector and self.num_sectors == other.num_sectors