Menu

#207 Replace inserts Special Characters

development
closed-invalid
nobody
Program (402)
5
2002-09-27
2002-09-27
No

I wanted to remove some HTML tags by replacing them
with nothing. NEdit inserted control characters instead
of nothing.

I entered '\<\l\>' in the String to Find field, pressed
Find to check, then pressed 'Window'. After that, I
changed the RE to '\</\l\>', '\<\l+\>' and '\</\l+\>'
and did likewise.

Nothing looked wrong at first sight, but a closer
revealed some non-printables where the tags have been.
'od -c' revealed them to be character 240.

I never touched the Replace With field.

NEdit release of Aug 13, 2002

Built on: Solaris, Sparc, GNU C
Built at: Aug 29 2002, 18:22:25
With Motif: 1.2.6 [@(#)OSF/Motif Version 1.2.6]
Running Motif: 1.2
Server: Sun Microsystems, Inc. 3600

+Rangeset, +Theme

Discussion

  • Eddy De Greef

    Eddy De Greef - 2002-09-27

    Logged In: YES
    user_id=73597

    Is this repeatable ?
    If so, can you attach a sample input file for which this
    sequence triggers the problem ?
    Could the input file have contained nul characters ?

     
  • Thorsten Haude

    Thorsten Haude - 2002-09-27

    Logged In: YES
    user_id=119143

    Sorry, the input file has special characters. It's
    http://www.nedit.org/archives/develop/2002-Sep/0279.html,
    and I didn't expect it to contain any special characters.

     
  • Thorsten Haude

    Thorsten Haude - 2002-09-27
    • status: open --> closed-invalid
     

Log in to post a comment.