Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b2ea63cddde31a87c0789b89bcf1502606fbe19
Ticket: 3393714fffffffffffffffffffffffffffffffff
overflow in toupper delta
User & Date: nijtmans on 2011-08-18 18:40:41
Changes

  1. icomment:
    Overflow problem fixed in all open branches.
    
    However, there are 11 unicode characters in Unicode 6.0
    (2 capital and 9 small letters), which have a 2-byte
    UTF-8 representation for the original character but
    a 3-byte representation for the converted character.
    Currently the Tcl_UtfTo(Upper|Lower|Title) have
    a protection to prevent inflation of the string,
    which prevents the conversion in this case.
    
    Here are the affected Unicode characters:
    023A;LATIN CAPITAL LETTER A WITH STROKE;Lu;0;L;;;;;N;;;;2C65;
    023E;LATIN CAPITAL LETTER T WITH DIAGONAL STROKE;Lu;0;L;;;;;N;;;;2C66;
    023F;LATIN SMALL LETTER S WITH SWASH TAIL;Ll;0;L;;;;;N;;;2C7E;;2C7E
    0240;LATIN SMALL LETTER Z WITH SWASH TAIL;Ll;0;L;;;;;N;;;2C7F;;2C7F
    0250;LATIN SMALL LETTER TURNED A;Ll;0;L;;;;;N;;;2C6F;;2C6F
    0251;LATIN SMALL LETTER ALPHA;Ll;0;L;;;;;N;LATIN SMALL LETTER SCRIPT A;;2C6D;;2C6D
    0252;LATIN SMALL LETTER TURNED ALPHA;Ll;0;L;;;;;N;LATIN SMALL LETTER TURNED SCRIPT A;;2C70;;2C70
    0265;LATIN SMALL LETTER TURNED H;Ll;0;L;;;;;N;;;A78D;;A78D
    026B;LATIN SMALL LETTER L WITH MIDDLE TILDE;Ll;0;L;;;;;N;;;2C62;;2C62
    0271;LATIN SMALL LETTER M WITH HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER M HOOK;;2C6E;;2C6E
    027D;LATIN SMALL LETTER R WITH TAIL;Ll;0;L;;;;;N;LATIN SMALL LETTER R HOOK;;2C64;;2C64
    
    For the first two capitals, [string tolower] will
    result in the original characters. For the other
    characters, [string toupper] and [string totitle]
    give the wrong result.
    
    Therefore this issue cannot be closed yet.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"