Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e174b3183aa4b977d3554aeaf2e1e13b15bff455d4827e694df662c76b316a44
Ticket: c5bcbf349489ed5260b2fd21a3d9f7a195d82585
Output of surrogates seems to repeat following character
User & Date: jan.nijtmans on 2023-02-06 21:25:56
Changes

  1. icomment:
    I cannot reproduce this. On MacOS:
    <pre>
    $ tclsh8.7
    % puts A\uD800B
    A???B
    % puts A\uD800C
    A???C
    % fconfigure stdout -strict 1
    % puts A\uD800B
    error writing "stdout": illegal byte sequence
    A%
    </pre>
    
    My guess is that this depends on the console. Tcl just outputs the (illegal) 3-byte UTF-8 sequence. In Tcl 9.0 it will (properly) throw an exception
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"