summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-02 21:08:41 +0200
committerhut <hut@lavabit.com>2011-10-02 21:08:41 +0200
commitecd4d28918899b178b26444a34f409f2ee0873ac (patch)
treeaae99e5051b59944730cd968fe3df57b0de914fe
parent201e64684ceef1f9d0c946bb990df35ab493fd59 (diff)
downloadranger-ecd4d28918899b178b26444a34f409f2ee0873ac.tar.gz
core.actions: smarter open() in get_preview
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index b1758e34..ef616fd1 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -662,7 +662,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 				return found
 		else:
 			try:
-				return open(path, 'r')
+				return codecs.open(path, 'r', errors='ignore')
 			except:
 				return None