This commit is contained in:
Kovid Goyal 2007-09-01 09:53:43 +00:00
parent d0434f5915
commit e7f96c2ee0

View File

@ -387,7 +387,7 @@ class LRFMetaFile(object):
if len(src) != self.uncompressed_info_size: if len(src) != self.uncompressed_info_size:
raise LRFException("Decompression of document meta info\ raise LRFException("Decompression of document meta info\
yielded unexpected results") yielded unexpected results")
candidate = unicode(src, 'utf-16') candidate = unicode(src, 'utf-16', 'replace')
# LRF files produced with makelrf dont have a correctly # LRF files produced with makelrf dont have a correctly
# encoded metadata block. # encoded metadata block.
# Decoding using latin1 is the most useful for me since I # Decoding using latin1 is the most useful for me since I