]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
merge-recursive: clean up get_renamed_dir_portion()
[thirdparty/git.git] / revision.c
index 442a705ad0314bc3361a1077716710ed7d559d2e..0fc0b425f6473c9e0e14e69929f22028fcd7d1d8 100644 (file)
@@ -28,6 +28,7 @@
 #include "commit-graph.h"
 #include "prio-queue.h"
 #include "hashmap.h"
+#include "utf8.h"
 
 volatile show_early_output_fn_t show_early_output;
 
@@ -2687,6 +2688,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
 
        grep_commit_pattern_type(GREP_PATTERN_TYPE_UNSPECIFIED,
                                 &revs->grep_filter);
+       if (!is_encoding_utf8(get_log_output_encoding()))
+               revs->grep_filter.ignore_locale = 1;
        compile_grep_patterns(&revs->grep_filter);
 
        if (revs->reverse && revs->reflog_info)