Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b704ed541112536e1a3b7c105b6fc40110a19dc4582c413f699a9dae62db36a
Ticket: 31aa44375de2c87ecb1361b15ca0102d831ad155
Tcl_NumUtfChars regression in default 8.6 build
User & Date: dgp on 2020-04-03 21:34:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Starting with checkin
    
    https://core.tcl-lang.org/tcl/info/b5633ba
    
    there is a regression in the function of Tcl_NumUtfChars() in the default build.
    Before that checkin:
    
    % lmap i {0 1 2 3 4} {testnumutfchars [testbytestring \xf0\x9f\x92\xa9] $i}
    0 1 2 3 4
    
    With that checkin:
    
    % lmap i {0 1 2 3 4} {testnumutfchars [testbytestring \xf0\x9f\x92\xa9] $i}
    0 1 2 2 2
    
    Besides the change in results, the new results also suggest that examination
    of the buffer is running past the end and reading bytes it should not.
    
  5. is_private changed to: "0"
  6. login: "dgp"
  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: "dgp"
  12. subsystem changed to: "- New Builtin Commands"
  13. title changed to: "Tcl_NumUtfChars regression in default 8.6 build"
  14. type changed to: "Bug"