From 86ab4006dfb6e668baf2d0879601caa026102b88 Mon Sep 17 00:00:00 2001 From: "P. Pronk" Date: Tue, 10 Jan 2017 18:59:38 +0100 Subject: [PATCH] Bug 12747 When autocompleting a file path in the location bar, the results are matched case-sensitive. Although it's logically impossible to do a locale-independent cases-insensitive compare, Unicode Case Folding comes a long way. This patch converts the search text and path_entry to a case independent string using g_utf8_casefold before comparing them. modified: thunar/thunar-path-entry.c --- thunar/thunar-path-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thunar/thunar-path-entry.c b/thunar/thunar-path-entry.c index 247345d..1d3375d 100644 --- a/thunar/thunar-path-entry.c +++ b/thunar/thunar-path-entry.c @@ -932,7 +932,7 @@ thunar_path_entry_match_func (GtkEntryCompletion *completion, /* check if we have a match here */ if (name_normalized != NULL) - matched = g_str_has_prefix (name_normalized, last_slash); + matched = g_str_has_prefix ( g_utf8_casefold (name_normalized, -1), g_utf8_casefold (last_slash, -1)); else matched = FALSE; -- 2.7.4