Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bf8539bf217ea17cd249b6eccef26aef2168b72d91aac2f2b9574455f00dd668
Ticket: 1b1f5f0b53e243d444628c8f414ea9664b5be44f
Tcl_UtfNext incompatibility in Tcl 8.6.10
User & Date: jan.nijtmans on 2020-04-17 15:34:39
Changes

  1. icomment:
    > I don't understand the question about test utf-2.11
    > It is effectively the same test as utf-2.8
    
    No, it's not! In utf-2.8, the byte sequence is "\xF0\x90\x80\x80" which translates to Unicode character \U10000, which is perfectly valid. In contrast, utf-2.11, "\xF4\x90\x80\x80", would translate to Unicode character \U110000.  But the maximum Unicode character defined is \U10FFFF, so it's too big. This algorithm, checking the validity of over-long 4-byte sequences is correctly implemented in Tcl_UtfToUniChar(), but it's not correctly implemented in Tcl_UtfNext() yet. I added this test-case to core-8-branch, so you can see that this really is a regression.
    
    Thanks!
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/plain"