After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339679 - Problems with search strings containing capitals
Problems with search strings containing capitals
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.10.x
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-25 09:03 UTC by Paul van Tilburg
Modified: 2006-06-04 08:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul van Tilburg 2006-04-25 09:03:52 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.
Comment 1 Caio Marcelo de Oliveira Filho 2006-05-10 20:07:17 UTC
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?
Comment 2 Richard Hult 2006-06-04 08:01:44 UTC
Thanks, fixed the search to be case insensitive.