williballenthin/shellbags — Issue #2: UnicodeDecodeError when processing string
Author: williballenthin
Created: 2011-12-19 21:04:54+00:00
State: open

File "/home/willi/projects/shellbags/shellbags.py", line 1114, in
for shellbag in get_all_shellbags(registry):
File "/home/willi/projects/shellbags/shellbags.py", line 1066, in get_all_shellbags
new = get_shellbags(shell_key)
File "/home/willi/projects/shellbags/shellbags.py", line 1040, in get_shellbags
shellbag_rec(bagmru_key, "", "")
File "/home/willi/projects/shellbags/shellbags.py", line 1037, in shellbag_rec
path)
File "/home/willi/projects/shellbags/shellbags.py", line 1037, in shellbag_rec
path)
File "/home/willi/projects/shellbags/shellbags.py", line 1037, in shellbag_rec
path)
File "/home/willi/projects/shellbags/shellbags.py", line 1037, in shellbag_rec
path)
File "/home/willi/projects/shellbags/shellbags.py", line 1025, in shellbag_rec
debug("Name: " + Fore.GREEN + item.name() + Fore.RESET)
File "/home/willi/projects/shellbags/shellbags.py", line 843, in name
n = self.long_name()
File "/home/willi/projects/shellbags/shellbags.py", line 838, in long_name
return self.unpack_wstring(self._off_long_name)
File "/home/willi/projects/shellbags/shellbags.py", line 361, in unpack_wstring
return self._buf[self._offset + offset:self._offset + offset + length].decode("utf16").partition("\x00")[0]
File "/usr/lib/python2.7/encodings/utf_16.py", line 16, in decode
return codecs.utf_16_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode byte 0x29 in position 136: truncated data