Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 84373ee3a46d5fb3a17651efdeb065d7ce374577aa1ec26d0e0d0dde5d9cb556
Ticket: a366c6efee1f70cc9b27f949d41afe3ee77c0f08
[ledit] corrupts string literal value
User & Date: dgp on 2023-07-14 14:59:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    The tests ledit-4.2 and socket_inet-13.1 interact and cause failure.
    The interaction can be summarized by this demo script:
    
    % proc demo {} {
    set l { }
    puts [list [ledit l 1 1] $l]
    set result foo
    append result " " bar
    }
    % demo
    {} {}
    foobar
    
    The result "foobar" is wrong.  It should be "foo bar".
    It appears that the string literal " " has had its string value
    transformed to "" before the append.  This might be the result
    of not managing value-sharing properly when the [ledit] command
    changes the value of $l from { } to {}.
    
    Hope that's enough to lead the [ledit] keepers to a fix.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "[ledit] corrupts string literal value"
  16. type changed to: "Bug"