Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 413733a55054e5249cc0cd7b8f9777e3f70f8c95
Ticket: 219412ffffffffffffffffffffffffffffffffff
string first returns invalid index
User & Date: nobody on 2000-10-26 05:12:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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]
    }
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "string first returns invalid index"
  11. type changed to: "Bug"