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 423237 - Find dialog doesnt normalize search history
Find dialog doesnt normalize search history
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: search and replace
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks: 423036
 
 
Reported: 2007-03-27 07:04 UTC by Denis Jacquerye
Modified: 2020-11-24 09:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test file with same string in NFD and NFC (78 bytes, text/plain)
2013-08-16 16:41 UTC, Denis Jacquerye
Details

Description Denis Jacquerye 2007-03-27 07:04:06 UTC
Search history is not normalized when used for autocompletion. It should be.

For example:
I succesfully search for "école" with U+00E9 LATIN SMALL LETTER E WITH ACUTE in a document so it is in the search history.
If I change keyboard layouts and use one with combining diacritics, typing the beginning of "école" with <U+0065 LATIN SMALL LETTER E + U+0301 COMBINING ACUTE ACCENT> doesn't autocomplete to what's equivalent and already in the search history.
Comment 1 Sébastien Wilmet 2013-08-16 10:27:01 UTC
I can not reproduce this bug. It was maybe fixed some time ago. Feel free to reopen this bug if the problem still occurs with a more recent gedit version.
Comment 2 Denis Jacquerye 2013-08-16 16:41:30 UTC
Created attachment 251913 [details]
test file with same string in NFD and NFC 

first line is NFD
second line is NFC
Comment 3 Denis Jacquerye 2013-08-16 16:46:25 UTC
I'v attached a test file with the same string "école" in NFD (where e-acute is decomposed in e and combining acute) and "école" in NFC (where e-acute is a single character).

Steps to reproduce:
1. Ctrl+H or Search>Replace
2. Search for the NFC "école" (copy the string from the second line to be sure)
3. Start inputing the NFC word with "é" and the search history autocompletes with "cole".
3. Start input the NFD word with "é" (copy if from the first line to be sure) and nothing happens as if the string was never searched. The expected behaviour is autocompletion with "cole".

The NFC and NFD strings are equivalent, and actually return the same search results, they should therefore be treated as the same search string in the history for autocompletion.
Comment 4 Sébastien Wilmet 2013-08-16 17:44:55 UTC
OK thank you for the details. Now I can reproduce the problem.
Comment 5 Sébastien Wilmet 2020-11-24 09:59:10 UTC
Mass-closing of all gedit bugzilla tickets.

Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.