diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 92d626c0..ba6b3658 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -819,7 +819,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): if version_info[0] == 3: def sha1_encode(self, path): return os.path.join(ranger.CACHEDIR, - sha1(path.encode('utf-8')).hexdigest()) + '.jpg' + sha1(path.encode('utf-8', 'backslashreplace')) \ + .hexdigest()) + '.jpg' else: def sha1_encode(self, path): return os.path.join(ranger.CACHEDIR, |