Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: abe26f8161344aeb87a91f11a14ce7da4c02903cffb0c380e7c5f436924811e4
Ticket: 493dccc2def8f673fba39d1d144fc6a35b5b9a5c
Taming test utf-2.11
User & Date: jan.nijtmans on 2020-04-22 12:06:10
Changes

  1. icomment:
    @sebres, Well, "format %c"  uses Tcl_UniCharToUtf() to convert the integer to a UTF-8 byte sequence. This function returns the UTF-8 sequence of \xFFFD for out-of range Unicode character values. It does this, even as far back as Tcl 8.4:
    
        [https://core.tcl-lang.org/tcl/artifact?udc=1&ln=183-211&name=b972e779b5e039b4]
    
    Looks like a perfect feature-test to me, works for any Tcl version in the past, should work for any Tcl version in the future. Your suggestion is harmless, but I don't see the added values. Sorry :-)
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"