Bug#561276: [Geany-devel] Bug#561276: geany does not escape '\\' in replace string

2009-12-28 Thread Enrico Tröger
On Thu, 17 Dec 2009 08:44:24 +, Ximin wrote: Hi, >> I had a short look at your examples but to be honest for me this is >> just not that important. I surely can find more corner cases where >> the one or the other regexp/special character combination won't work. >> Either you write a patch to

Bug#561276: [Geany-devel] Bug#561276: geany does not escape '\\' in replace string

2009-12-17 Thread Ximin Luo
Enrico Tröger wrote: > I had a short look at your examples but to be honest for me this is > just not that important. I surely can find more corner cases where the > one or the other regexp/special character combination won't work. > Either you write a patch to make things better or you maybe just

Bug#561276: [Geany-devel] Bug#561276: geany does not escape '\\' in replace string

2009-12-16 Thread Enrico Tröger
On Wed, 16 Dec 2009 13:06:42 +, Ximin wrote: >Damián Viano wrote: >>> In "try to replace me with \t", with Find = "me": >> >> This is the result with: >> "Use regular expressions" ON >> "Use escape sequences"OFF >> >>> Replace = "\t" replaces "me" with a tab >>> Replace = "\\t" replaces

Bug#561276: geany does not escape '\\' in replace string

2009-12-16 Thread Ximin Luo
Damián Viano wrote: >> In "try to replace me with \t", with Find = "me": > > This is the result with: > "Use regular expressions" ON > "Use escape sequences"OFF > >> Replace = "\t" replaces "me" with a tab >> Replace = "\\t" replaces "me" with a backslash followed by a tab >> Replace = "\\\t"

Bug#561276: geany does not escape '\\' in replace string

2009-12-16 Thread Damián Viano
[CCing geany devel list, using the address I'm subscribed with to avoid moderation] On Tue, Dec 15, 2009 at 10:45:25PM +, Ximin Luo wrote: > Damián Viano wrote: > > I used a text file with (created with echo 'try to replace me \t' > > >test_file): > > > > try to replace me \t > > > > [snip

Bug#561276: geany does not escape '\\' in replace string

2009-12-15 Thread Damián Viano
On Tue, Dec 15, 2009 at 09:12:25PM +, Ximin Luo wrote: > Geany does not escape "\\" if it occurs in the replacement string in "Find and > Replace", regardless of whether "Use escape sequences" is checked. This means > that it's impossible to correctly replace something with a string that > con

Bug#561276: geany does not escape '\\' in replace string

2009-12-15 Thread Ximin Luo
Damián Viano wrote: > I used a text file with (created with echo 'try to replace me \t' > >test_file): > > try to replace me \t > > And replaced "me" with \t, if "Use escape sequences" was not checked it > inserted a literal \t, else it inserted a tab. Using \\t and "Use escape > sequences" it

Bug#561276: geany does not escape '\\' in replace string

2009-12-15 Thread Ximin Luo
come to think of it, why doesn't geany just link against libpcre, instead of trying to implement its own regexp engine? it doesn't even support the '?' operator... -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...

Bug#561276: geany does not escape '\\' in replace string

2009-12-15 Thread Ximin Luo
Package: geany Version: 0.18-1 Severity: normal Geany does not escape "\\" if it occurs in the replacement string in "Find and Replace", regardless of whether "Use escape sequences" is checked. This means that it's impossible to correctly replace something with a string that contains the literal '