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 419894 - broken decomposed Unicode queries
broken decomposed Unicode queries
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: gdict
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks: 423036
 
 
Reported: 2007-03-18 21:41 UTC by Denis Jacquerye
Modified: 2007-08-18 21:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
normalize word in command (1.84 KB, patch)
2007-03-30 11:39 UTC, Denis Jacquerye
none Details | Review
gdict: normalize word in command (1010 bytes, patch)
2007-03-30 11:52 UTC, Denis Jacquerye
committed Details | Review

Description Denis Jacquerye 2007-03-18 21:41:41 UTC
Gdict doesn’t seem to handle decomposed query strings.

For example on a French dict, search for "bière" (that’s with <e, combingin grave> instead of <e grave>) and no result if found, querying "bière" finds results.

I'm guessing this would depend on dict, what Unicode normalization is uses, if it does.
Comment 1 Denis Jacquerye 2007-03-30 11:39:24 UTC
Created attachment 85559 [details] [review]
normalize word in command

This patch normalizes the word when adding it to the command
with   cmd->word = g_utf8_normalize (word, -1, G_NORMALIZE_NFC);
Comment 2 Denis Jacquerye 2007-03-30 11:52:50 UTC
Created attachment 85560 [details] [review]
gdict: normalize word in command

Sorry, patch was also doing something else for gnome-screenshot.

Here's the correct patch.
Comment 3 Emmanuele Bassi (:ebassi) 2007-08-18 21:37:41 UTC
thanks, applied to SVN trunk.

2007-08-18  Emmanuele Bassi  <ebassi@gnome.org>

        * libgdict/gdict-client-context.c: Handle decomposed strings
        when querying the dictionary server. (#419894, Denis Jacquerye)