summaryrefslogtreecommitdiff
path: root/src/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grep.c')
-rw-r--r--src/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grep.c b/src/grep.c
index f9d1d86c..1c452867 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2852,7 +2852,7 @@ main (int argc, char **argv)
(where -F does not work) or if -i and the patterns will not work
for -iF. */
if (matcher == F_MATCHER_INDEX
- && (MB_CUR_MAX <= 1
+ && (! localeinfo.multibyte
? match_words
: (contains_encoding_error (keys, keycc)
|| (match_icase && !fgrep_icase_available (keys, keycc)))))