Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f972059f13da7ee418c915572ae4bf563ead16f8fcc03445dcfd8bbc499abd9
Ticket: c574e50a3b30e76f6c57bdcf27e043bcd030dbda
CRASH: utf-2.[89] in 8.5 built with TCL_UTF_MAX=4
User & Date: dgp on 2020-04-20 19:59:26
Changes

  1. icomment:
    Checkin 
    
    https://core.tcl-lang.org/tcl/info/e2278643dc
    
    first tried to do something better, including a first stab at some use of
    surrogates, but it kept in place decoding of 5- and 6-byte sequences
    (for TCL_UTF_MAX == 6) and it got decoding of 4-byte sequences
    (when TCL_UTF_MAX == 4) completely wrong, discarding the high bits.
    
    % package present Tcl                  
    8.6.5
    % format %X [scan [encoding convertfrom identity \xF0\x9F\x92\xA9] %c]
    F4A9
    
    (Should be 1F4A9)
    
    There are hints that the 8.6.5 release was starting to aim for
    
    UTF_MAX=3: [A]
    UTF_MAX=4: [C]
    UTF_MAX=6: [B]
    
    but it's best to still think of the unsupported configurations as unusable.
    
  2. login: "dgp"
  3. mimetype: "text/plain"