summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFichteFoll <fichtefoll2@googlemail.com>2018-02-24 20:11:31 +0100
committerFichteFoll <fichtefoll2@googlemail.com>2018-03-09 02:11:03 +0100
commita84f685ba278d35905e7adf1aacfffbce77929bd (patch)
treeb8a340890667ab3b6a067eba3ad92ed5adeb1611
parente009af039cdbf8ba2070222b501584112e0b7f2e (diff)
downloadranger-a84f685ba278d35905e7adf1aacfffbce77929bd.tar.gz
Add a comment about encoding without previews
-rw-r--r--ranger/core/actions.py1
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):