Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 547f5d343b24b3123ea2c4f3ae88ce5e76b345680c571ffe116aff15a20a6522
Ticket: c574e50a3b30e76f6c57bdcf27e043bcd030dbda
CRASH: utf-2.[89] in 8.5 built with TCL_UTF_MAX=4
User & Date: jan.nijtmans on 2020-04-21 14:59:37
Changes

  1. icomment:
    Example:
    <pre>
    $ tclsh8.6
    % puts stdout \uD800\uDC00
    𐀀
    % puts stdout [encoding convertfrom utf-8 \xF0\x90\x80\x80]
    𐀀
    % string length [encoding convertfrom utf-8 \xF0\x90\x80\x80]
    2
    </pre>
    
    Even though in Tcl 8.6, 4-byte sequences are illegal, the Utf2Utf encoder translates those to 2 surrogates, and everything behaves as expected. That's a better fallback than splitting it into 4 characters
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/plain"