-
Notifications
You must be signed in to change notification settings - Fork 18
Description
We are using pylnk3 for resolving Windows link files on macOS. Some link files can be resolved, others are running into error messages.
A sample file is attached.
Traceback (most recent call last):
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 2015, in
cli()
~~~^^
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1999, in cli
lnk = parse(args.filename)
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1769, in parse
return Lnk(lnk)
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1506, in init
self._parse_lnk_file(f)
~~~~~~~~~~~~~~~~~~~~^^^
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1573, in _parse_lnk_file
self.extra_data = ExtraData(lnk)
~~~~~~~~~^^^^^
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1455, in init
block = block_class(bytes=bytes)
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1174, in init
self.read(bytes)
~~~~~~~~~^^^^^^^
File "/Users/wolfgang.rothermel/scripts/./pylnk3.py", line 1180, in read
self.target_ansi = buf.read(260).decode('ansi')
~~~~~~~~~~~~~~~~~~~~^^^^^^^^
LookupError: unknown encoding: ansi