summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py
index e1262718..59d3e6c0 100644
--- a/ranger/core/loader.py
+++ b/ranger/core/loader.py
@@ -146,7 +146,7 @@ def safeDecode(string):
 		return string.decode("utf-8")
 	except (UnicodeDecodeError):
 		if HAVE_CHARDET:
-			return string.decode(chardet.detect(str)["encoding"])
+			return string.decode(chardet.detect(string)["encoding"])
 		else:
 			return ""
 
pre>