From de0f59d6d1a78f170f5d2339f2611497b6060486 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Jul 2015 08:59:10 +0530 Subject: [PATCH] ... --- src/calibre/gui2/store/search/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/store/search/models.py b/src/calibre/gui2/store/search/models.py index b98edec887..7088452292 100644 --- a/src/calibre/gui2/store/search/models.py +++ b/src/calibre/gui2/store/search/models.py @@ -12,6 +12,7 @@ from operator import attrgetter from PyQt5.Qt import (Qt, QAbstractItemModel, QPixmap, QModelIndex, QSize, pyqtSignal) +from calibre import force_unicode from calibre.gui2 import FunctionDispatcher from calibre.gui2.store.search_result import SearchResult from calibre.gui2.store.search.download_thread import DetailsThreadPool, \ @@ -469,5 +470,6 @@ class SearchFilter(SearchQueryParser): def field_trimmer(self, field): ''' Remove common joiner words and punctuation to improve matching, punctuation is removed first, so that a.and.b becomes a b ''' + field = force_unicode(field) return self.joiner_pat.sub(' ', field.translate(self.punctuation_table))