Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 Bug in "strip" procedure

closed-fixed
nobody
None
5
2005-04-02
2005-03-23
lnx85
No

The "strip" procedure is affected by a little bug
during deletion of control-codes.
That procedure uses the function [ string is graph
$char ] which, during deletion of control-codes \003,
doesn't delete the relative numeric codes.
You'd better add the following instruction as first
line of the procedure:

regsub -all --
{((\002|\026|\037|\017|\022)|(\003([0-9]{1,2}(,[0-9]{1,2})?)?))}
$args "" args

which provides the right control-codes deleting.

Sorry for my bad school english :D

Discussion

    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=186608

    I've added your suggestion to the script. New version is on
    the site.