Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3dae6863ea4c57f03d2c8a845b6c64089a3996bd9c08c8f6afc1196eeabb3202
Ticket: 141c6f5621e9c9e881f63fbf28c473955b6adae0
[string length] reports a length of 2 for a single character
User & Date: jan.nijtmans on 2022-03-07 15:12:40
Changes

  1. closedate changed to: "2459646.13379903"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    The only 'real' solution is compiling Tcl 8.7 with UCS-2-support:
    <pre>
    ./configure CFLAGS="-DTCL_UTF_MAX=4"
    </pre>
    
    That's possible, it has some implications for extensions. It's up to you whether those implications are acceptable or not. Both TCL_UTF_MAX=3 and TCL_UTF_MAX=4 are supported for Tcl 8.7 (see [https://core.tcl-lang.org/tips/doc/trunk/tip/542.md|TIP #542]
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"