Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 10b734db9cc47757b516e4c4d03a81b30357e790655ffa04dabc5a8c1e7f15cf
Ticket: c61818e4c9b710bdf9f947c1a40563aeab85357a
Tcl_UtfPrev flaws
User & Date: dgp on 2020-04-06 20:40:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Demo script:
    
    interp alias {} bytes {} encoding convertfrom identity
    set demo [bytes foo\xc0\x80\x88]
    set map [list \u0000 U \x88 V [bytes \x88] W]
    puts "Tcl [package present Tcl]"
    puts [string map $map $demo]
    puts [string map $map [string trimright $demo x]]
    
    Outputs:
    
    Tcl 8.5.9
    fooUW
    fooUW
    
    Tcl 8.5.10
    fooUW
    fooU
    
    Blame the rewrite in checkin
    
    https://core.tcl-lang.org/tcl/info/c48b1de113
    
  5. foundin changed to: "8.5.10+"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "10. Objects"
  14. title changed to: "[string trimright] regression"
  15. type changed to: "Bug"