GNOME Bugzilla – Bug 339679
Problems with search strings containing capitals
Last modified: 2006-06-04 08:01:59 UTC
When search for a string in Previous Converstions (tab Search) that contains capitals, the algorithm only seems to find, scroll to and highlight lowercase versions of this string.
Happens with latest CVS too. In src/gossip_chat_view.c, gossip_chat_view_find(), line 1713. And also in gossip_chat_view_highlight(), line 1780. There is a call to g_utf8_casefold() that turns the search string into a form "independent of the case" (seems like is turning just into lower case), but looks like the other strings being compared (the contents of messages) are not. For a insensitive case search, that would need to happen. For case sensitive search, just dropping the g_utf8_casefold call seems to work, but I'm not aware of enconding problems that could happen. Maybe another function from g_utf8_* family should be used instead. Will the search be case sensitive or insensitive?
Thanks, fixed the search to be case insensitive.