summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-07 02:45:05 +0100
committernfnty <git@nfnty.se>2017-01-07 02:45:05 +0100
commitc38c7f2a11eeaa882e2253a7fcabd62b3fadb8fc (patch)
tree4aa293e78300a1c48dc9b8c1e2d77738de2fed27
parentbfaeb3fbadb5152a98b95199403fb1563d730453 (diff)
downloadranger-c38c7f2a11eeaa882e2253a7fcabd62b3fadb8fc.tar.gz
config/commands.py: scout: Do not use `re.LOCALE`
Very unreliable and Python 3.6 only supports the flag for bytes patterns

Fixes #664
Fixes #752
-rwxr-xr-xranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 18efbfc1..a384f427 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1251,7 +1251,7 @@ class scout(Command):
             regex = "^(?:(?!%s).)*$" % regex
 
         # Compile Regular Expression
-        options = re.LOCALE | re.UNICODE
+        options = re.UNICODE
         if self.IGNORE_CASE in flags or self.SMART_CASE in flags and \
                 pattern.islower():
             options |= re.IGNORECASE