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 539293 - Search/Replace with german ß replaces one letter more
Search/Replace with german ß replaces one letter more
Status: RESOLVED DUPLICATE of bug 168247
Product: gedit
Classification: Applications
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-20 14:36 UTC by Tobias Fink
Modified: 2009-12-30 16:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Tobias Fink 2008-06-20 14:36:27 UTC
I have gedit 2.22.3 (Package 2.22.3-0ubuntu1) with Hardy.
If I try to Search/Replace something with a german ß one letter too much is replaced. Example:

I want to change every occurence of "Behebungsmaßnahme" to "Maßnahme" in a whole Text.
So I do a search/replace "Behebungsmaß" -> "Maß"
Now in the text the words reads "Maßahme", without the "n"

Doing a search "Behebungsmaß" in she search/replace dialog highlights "Behebungsmaßn" - one letter too much. And that's what is being replaced.
Comment 1 Hans im Glück 2008-07-24 16:12:25 UTC
I can confirm this behaviour. Maybe utf-8 encoding isn't handled correctly because 'ß' has 2 bytes and therefore overwrites the next character. 'ÄÖÜäöü' are handled correctly though, very strange.
Comment 2 Jeff Shipley 2008-10-20 16:40:54 UTC
This seems to be closely related to Bug #496780. I would expect your guess to be right, that 2 byte letters overwrite adjacent characters. As for the umlaut characters, are those 2 byte characters? I thought they were single byte characters.
Comment 3 Jeff Shipley 2008-10-20 17:21:37 UTC
After looking into it a bit, it appears that the problem most likely originates somewhere in the gtk_source_iter_forward_search function in gtksourceiter.c from gtksourceview. I'll look into fixing it and submitting a patch upstream.
Comment 4 Jeff Shipley 2008-10-20 18:03:29 UTC
This is a duplicate of bug 168247
Comment 5 Ignacio Casal Quinteiro (nacho) 2009-12-30 16:27:10 UTC
Yep it looks like a duplicate indeed.

*** This bug has been marked as a duplicate of bug 168247 ***