Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 362267ca82f876e45faae13ffea3598cb4a2eb65dacd19602ce8cefa8b762fae
Ticket: 141c6f5621e9c9e881f63fbf28c473955b6adae0
[string length] reports a length of 2 for a single character
User & Date: pooryorick on 2022-03-07 00:07:06
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When the following script is evaluated in a core_8_branch build, the total
    length of the string containing a single character is reported as 2, the length
    of the first character is reported as 2, and the length of the next character
    is reported as 0:
    
    <code><verbatim>
    set string \Uade19
    puts [list string length [string length $string]]
    puts [string length [string index $string 0]]
    puts [string length [string index $string 1]]
    </verbatim></code>
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Important"
  10. status changed to: "Open"
  11. submitter changed to: "pooryorick"
  12. subsystem changed to: "- New Builtin Commands"
  13. title changed to:
    [string length] reports a length of 2 for a single character
    
  14. type changed to: "Bug"