Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b43ba4c4d778629a97682a1a58f00280f667677e3d46f48a75f141c4a409a23b
Ticket: debd088e48998a758f2927b67c132341954428ea
llength split is different from string length
User & Date: kyak on 2021-02-11 18:48:35
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Starting from Tcl 8.6.11, for unicode strings, [llength [split]] is different from [string length]. Here is an example:
    
    $ echo 'puts "[info patchlevel] -- [llength [split "\ud83e\udd1d" {}]] -- [string length "\ud83e\udd1d"]"' | tclsh
    8.6.10 -- 2 -- 2
    
    $ echo 'puts "[info patchlevel] -- [llength [split "\ud83e\udd1d" {}]] -- [string length "\ud8
    3e\udd1d"]"' | tclsh
    8.6.11 -- 1 -- 2
    
  5. foundin changed to: "8.6.11"
  6. is_private changed to: "0"
  7. login: "kyak"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "ccd3c531d3a043e4f116383eb9cb92480447acbc"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "kyak"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to: "llength split is different from string length"
  16. type changed to: "Bug"