[bug #19333] Search and replace misbehavior with regexps and % in replacement

2007-04-27 Thread Pavel Tsekov

Follow-up Comment #4, bug #19333 (project mc):

Argh. I misattributed this patch to me in the ChangeLog. Let me know whether
to fix the ChangeLog entry.

___

Reply to this item at:

  http://savannah.gnu.org/bugs/?19333

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #19333] Search and replace misbehavior with regexps and % in replacement

2007-03-29 Thread Andrew V. Samoilov

Update of bug #19333 (project mc):

  Status:None = Ready For Test 
 Assigned to:None = sav
Operating System:   GNU/Linux = All

___

Follow-up Comment #1:

Hello, Martin!

Check scanf expression with this patch, I am not familiar with this type of
replace.

(file #12334)
___

Additional Item Attachment:

File name: editcmd.c.patchSize:0 KB


___

Reply to this item at:

  http://savannah.gnu.org/bugs/?19333

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


[bug #19333] Search and replace misbehavior with regexps and % in replacement

2007-03-17 Thread Martin Petricek

URL:
  http://savannah.gnu.org/bugs/?19333

 Summary: Search and replace misbehavior with regexps and %
in replacement
 Project: GNU Midnight Commander
Submitted by: bilboq
Submitted on: Saturday 03/17/2007 at 20:14
Category: Editor
Severity: 3 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
 Release: current (CVS or snapshot)
Operating System: GNU/Linux

___

Details:

When I perform search and replace with regular expression checked and % in
replacement, I see weird errors.

How to reproduce:

Type a text in a text file, move to first character.
Hit F4 (search and replace, check regular expression and use t.* as seach
and % (percent character) as replacement. MC complains about Replacement
too long. Other replacements containing % characted misbehave more or less
... 

When i enter %d as a replacement, random number is inserted as replacement.
Seems like scanf expression is somehow activated, even though the checkbox
scanf Expression is not checked.




___

Reply to this item at:

  http://savannah.gnu.org/bugs/?19333

___
  Message sent via/by Savannah
  http://savannah.gnu.org/

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel