GNOME Bugzilla – Bug 332549
Search and Search&Replace have a problem with the "\" backslash
Last modified: 2006-07-04 20:18:09 UTC
That bug has been described on https://launchpad.net/distros/ubuntu/+source/gedit/+bug/32490 "If I have a string like this in a file (reg file from wine by example) : "C:\\mozilla\\bin\\mozctl.dll", I have to write "C:\\\\mozilla" (with four slash) to find the good string"
This is not a real bug, it's a design decision: '\' needs to be escaped as '\\' so that we can use \n and \t to search multiline strigs. The bug is that when selcting text and pressing ctrl+F the text should be escaped automatically. *** This bug has been marked as a duplicate of 328637 ***
Makes sense, sorry for the dup :)
*** Bug 346538 has been marked as a duplicate of this bug. ***
Paolo, may I have the opinion that this is _not_a design decision? It would be so if the it were about this scenario: "if you want to and replace \t, write them in the dialog box as \\t, for not taking the for tabs". But the scenario is this: "if you select a text containing \t, the search and replace dialog box shows automatically the selected text with \t instead of \\t". This is a behavioral bug. The select and replace dialog should replace in the selected text \ with \\ before displaying!
Sorry for the previous comment, I wanted to join the opinion that the bug is really "when selecting text and pressing ctrl+F the text should be escaped automatically."