diff options
-rw-r--r-- | ranger/core/actions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 0c09d41f..6f4f60e2 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -979,6 +979,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m if not self.settings.preview_script or not self.settings.use_preview_script: try: + # XXX: properly determine file's encoding return codecs.open(path, 'r', errors='ignore') # IOError for Python2, OSError for Python3 except (IOError, OSError): |