Corrected assumed 'utf-8' encoding

Was failing on my machine - traced it to line 189 using a hard-coded 'utf-8' encoding. Everywhere else uses FSENCODING (which on my machine is 'mbcs'), so replaced it here as well.
This commit is contained in:
benshep 2016-10-31 14:03:59 +00:00 committed by GitHub
parent d192fa0175
commit 53b1a12301

View File

@ -186,7 +186,7 @@ class Bitrot(object):
)
for p in paths:
p_uni = p.decode('utf8')
p_uni = p.decode(FSENCODING)
try:
st = os.stat(p)
except OSError as ex: