[nautilus-actions] Fix case insenstive comparison (bug reported by Johan Spee)
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Fix case insenstive comparison (bug reported by Johan Spee)
- Date: Mon, 31 Jan 2011 21:40:47 +0000 (UTC)
commit 9364f4380a5e535ff358a0f13a83c4e3c8b3b0eb
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Jan 28 09:09:36 2011 +0100
Fix case insenstive comparison (bug reported by Johan Spee)
ChangeLog | 3 +++
src/core/na-icontext.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fa05446..25b2d13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-01-28 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-icontext.c (is_candidate_for_basenames):
+ Fix case insenstive comparison (bug reported by Johan Spee).
+
Whole refactoring of BaseWindow / BaseAssistant / BaseDialog
* src/nact/base-application.c:
diff --git a/src/core/na-icontext.c b/src/core/na-icontext.c
index 1ee2316..8f3d6be 100644
--- a/src/core/na-icontext.c
+++ b/src/core/na-icontext.c
@@ -853,7 +853,7 @@ is_candidate_for_basenames( const NAIContext *object, guint target, GList *files
bname = na_selected_info_get_basename( NA_SELECTED_INFO( it->data ));
bname_utf8 = g_filename_to_utf8( bname, -1, NULL, NULL, NULL );
if( !matchcase ){
- tmp = g_ascii_strdown( bname_utf8, g_utf8_strlen( bname_utf8, -1 ));
+ tmp = g_utf8_strdown( bname_utf8, -1 );
g_free( bname_utf8 );
bname_utf8 = tmp;
}
@@ -862,7 +862,7 @@ is_candidate_for_basenames( const NAIContext *object, guint target, GList *files
for( ib = basenames ; ib && ok ; ib = ib->next ){
pattern = matchcase ?
g_strdup(( gchar * ) ib->data ) :
- g_ascii_strdown(( gchar * ) ib->data, strlen(( gchar * ) ib->data ));
+ g_utf8_strdown(( gchar * ) ib->data, -1 );
positive = is_positive_assertion( pattern );
pattern_utf8 = g_filename_to_utf8( positive ? pattern : pattern+1, -1, NULL, NULL, NULL );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]