[bug #19333] Search and replace misbehavior with regexps and "%" in	replacement
- From: Martin Petricek <INVALID NOREPLY gnu org>
- To: Martin Petricek <singularita gmail com>, mc-devel gnome org
- Subject: [bug #19333] Search and replace misbehavior with regexps and "%" in	replacement
- Date: Sat, 17 Mar 2007 20:15:00 +0000
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/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]