Wrye-Mash icon indicating copy to clipboard operation
Wrye-Mash copied to clipboard

Fix filename encoding

Open ghost opened this issue 10 years ago • 0 comments

Previously, line 2767 in mosh.py would throw an exception with the message TypeError: decoding Unicode is not supported. The unicode function is meant to encode raw data -- usually string objects -- and it refuses to do any decoding. The problem was that fileName was a unicode object -- possibly because self.dir was itself a unicode object, and os.listdir returns unicode objects if its argument is one.

ghost avatar Sep 05 '15 11:09 ghost