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:
parent
d192fa0175
commit
53b1a12301
@ -186,7 +186,7 @@ class Bitrot(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for p in paths:
|
for p in paths:
|
||||||
p_uni = p.decode('utf8')
|
p_uni = p.decode(FSENCODING)
|
||||||
try:
|
try:
|
||||||
st = os.stat(p)
|
st = os.stat(p)
|
||||||
except OSError as ex:
|
except OSError as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user