Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2605f11e6032b9a6752ff049abe049032e64d5e08ebac670131d6e7a5306bf74
Ticket: d10d6ddf295864389294b966163a23a58b9a1e72
UTF-16 Unicode escapes should continue to work in version 9.0
User & Date: jan.nijtmans on 2024-08-12 15:23:44
Changes

  1. icomment:
    There's a portable way to specify an emoji:
    <pre>
    % encoding convertfrom utf-8 \xF0\x9F\x98\x81
    😁
    </pre>
    
    This will work with Tcl 8.7, 9.0, and newer Tcl 8.6 versions.
    
    I'm quite reluctant on implementing your (@bhaible) suggestion. It would mean that the following won't give an exception any more in Tcl 9.0:
    <pre>
    % puts stdout \uD83D\uDE01
    error writing "stdout": invalid or incomplete multibyte or wide character
    </pre>
    
    This behavioral change in Tcl 9.0 was proposed in [https://core.tcl-lang.org/tips/doc/trunk/tip/619.md|TIP #619], and accepted. This means, a new TIP will need to be written to undo that change. I'm afraid there won't be enough support for that.
    
    Hope this helps,
          Jan Nijtmans
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"