Ticket UUID: | 476988 | |||
Title: | splitx and the empty string | |||
Type: | Bug | Version: | None | |
Submitter: | glennjnn | Created on: | 2001-10-31 22:28:08 | |
Subsystem: | textutil | Assigned To: | andreas_kupries | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2001-12-12 04:50:00 | |
Resolution: | Fixed | Closed By: | andreas_kupries | |
Closed on: | 2001-12-11 21:50:00 | |||
Description: |
Using splitx on an empty string does not return an empty list. # test script package require textutil namespace import ::textutil::split::splitx puts [llength [split ""]] ;# ==> 0 puts [llength [splitx ""]] ;# ==> 1 The first line of the splitx should be if {[string length $str]==0} {return {}} | |||
User Comments: |
andreas_kupries added on 2001-12-12 04:50:00:
Logged In: YES user_id=75003 Committed to head. andreas_kupries added on 2001-12-12 04:48:53: File Added - 14531: 476988.diff Logged In: YES user_id=75003 Enclosed a patch fixing the problem. |
Attachments:
- 476988.diff [download] added by andreas_kupries on 2001-12-12 04:48:53. [details]