string first returns invalid index
Closed / Fixed219412ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:12:36
OriginalBugID: 6359 Bug
Version: 8.3.1
SubmitDate: '2000-10-16'
LastModified: '2000-10-25'
Severity: SER
Status: UnAssn
Submitter: techsupp
OS: All
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Lothar
ReproducibleScript:
Bug came with tclsh8.2 (not in tclsh8.1). Only if non-ASCII
characters are in the string:
s7$ tclsh8.1 ttt
"ö":first=2
"o":first=2
s7$ tclsh8.2 ttt
"ö":first=3 <=== bad
"o":first=2
ERDE$ tclsh83 ttt
"ö":first=3 <=== bad
"o":first=2
Here is the file "ttt" (3 lines):
foreach t { {"ö"} {"o"} } {
puts $t:first=[string first {"} $t 1]
}
hobbsplain2000-12-10 10:14:46
This has already been fixed in 8.4a2 with improved handling of string first. If an 8.3.3 is made, we would need to backport the fix.
dgp Ticket [219412ffff]: 3 changes
[History diff]2001-04-05 08:05:33
Log in (anonymous is fine) to add a comment.