Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b91ef6c62ae916305c0a578ebeb879acc9e10fdf
Ticket: 2845214fffffffffffffffffffffffffffffffff
Malfunction of "string trimright" with certain strings
User & Date: jestone on 2009-08-26 22:27:04
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following script produces incorrect output for "stringb":
    set stringa "teststring_a.pdb"
    set stringb "teststring_b.pdb"
    set outa [string trimright $stringa ".pdb"]
    set outb [string trimright $stringb ".pdb"]
    puts "$stringa -> $outa"
    puts "$stringb -> $outb"
    
    With several recent Tcl versions, I get this output:
    teststring_a.pdb -> teststring_a
    teststring_b.pdb -> teststring_
    
    I would instead, expect this output to be correct:
    teststring_a.pdb -> teststring_a
    teststring_b.pdb -> teststring_b
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "jestone"
  10. subsystem changed to: "None"
  11. title changed to:
    Malfunction of "string trimright" with certain strings 
    
  12. type changed to: "Bug"