From 53b1a12301e313840043273b03b6e979a895eef3 Mon Sep 17 00:00:00 2001 From: benshep Date: Mon, 31 Oct 2016 14:03:59 +0000 Subject: [PATCH] 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. --- src/bitrot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitrot.py b/src/bitrot.py index 80c8b91..24ef718 100644 --- a/src/bitrot.py +++ b/src/bitrot.py @@ -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: