Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 82b11d063ecf115bed03b416753523d76ddf5ade0968ededb87f091821aa6eb5
Ticket: 7f1162a8674cc65c9b72169818badc3186f97678
concatenation does not make usable surrogate pairs
User & Date: jan.nijtmans on 2021-04-12 10:56:51
Changes

  1. icomment:
    Demo:
    <pre>
    % set x [testbytestring foo\xc0]
    foo
    % set y [testbytestring \x80zoo]
    €zoo
    % string length $x
    4
    % string length $y
    4
    % append x $y
    foozoo
    % string length $x
    8
    % string first \u0000 $x
    -1
    % string first \xc0 $x
    3
    % string first [testbytestring \xc0] $x
    3
    % scan [string index $x 3] %c
    192
    % scan [string index $x 4] %c
    8364
    </pre>
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"