From a84f685ba278d35905e7adf1aacfffbce77929bd Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Sat, 24 Feb 2018 20:11:31 +0100 Subject: Add a comment about encoding without previews --- ranger/core/actions.py | 1 + 1 file changed, 1 insertion(+) 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): -- cgit 1.4.1-2-gfad0