summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/search.c b/search.c
index f82db024..a1bf4665 100644
--- a/search.c
+++ b/search.c
@@ -35,6 +35,8 @@
#include "messagepump.h"
#include "messages.h"
+#include "utf8.h"
+
extern GtkWidget *searchwin;
struct playItem_s *search_current = NULL;
int search_count = 0;
@@ -65,7 +67,8 @@ on_searchentry_changed (GtkEditable *editable,
if (*text) {
for (playItem_t *it = playlist_head[PL_MAIN]; it; it = it->next[PL_MAIN]) {
for (metaInfo_t *m = it->meta; m; m = m->next) {
- if (strcasestr (m->value, text)) {
+// if (strcasestr (m->value, text)) {
+ if (utfcasestr (m->value, text)) {
// add to list
it->next[PL_SEARCH] = NULL;
if (playlist_tail[PL_SEARCH]) {