Tk Library Source Code

View Ticket
Login
Ticket UUID: 2123513
Title: missing protections from empty $sepChar
Type: Bug Version: None
Submitter: nobody Created on: 2008-09-22 21:53:09
Subsystem: csv Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-10-03 05:28:02
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2008-10-02 22:28:02
Description:
% package require csv
0.7
% package require struct
2.1
% csv::split2matrix [struct::matrix] fubar {}
couldn't compile regular expression pattern: invalid escape \ sequence
% csv::split2queue [struct::queue] fubar {}
couldn't compile regular expression pattern: invalid escape \ sequence

Likewise for the read2* variants.

Deep inner parts cannot tolerate an
empty string value for $sepChar, but not
all wrappers protect against it.
User Comments: andreas_kupries added on 2008-10-03 05:28:02:
Added guard commands to the read2 and split2 procedures, extended testsuite. Bumped to version 0.7.1. Committed to head.