Skip to content
Tcl Source Code History Of Ticket 769812ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 769812ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 769812ffffffffffffffffffffffffffffffffff

  1. Ticket change [f67080ea87] (rid 130303) by dgp on 2003-07-11 19:20:52:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Documentation for Tcl_NumUtfChars says:
      
           Tcl_NumUtfChars corresponds to strlen for UTF-8
      strings.  It
           returns  the  number of Tcl_UniChars that are
      represented by
           the UTF-8 string src.  The length of the  source 
      string  is
           len  bytes.   If the length is negative, all bytes
      up to the
           first NULL byte are used.
      
      However, when length is negative, the routine
      does not stop at the first NULL byte.  It stops
      after the first UTF sequence that converts to
      the null character, notably \xC0\x80
      
      So, it seems that
      
          Tcl_NumUtfChars("\300\200\000", -1)
      
      will return 0, when it should return 1.
      
      It appears that changing line 506 of revision
      1.31 of generic/tclUtf.c from
      
          if (ch == '\0') {
      
      to
      
          if (str[-1] == '\0') {
      
      would correct the error.
      
    4. foundin initialized to: "obsolete: 8.4.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "44. UTF-8 Strings"
    10. title initialized to: "Tcl_NumUtfChars not as documented"
    11. type initialized to: "Bug"
  2. Ticket change [4751be0998] (rid 99679) by dgp on 2003-07-12 04:43:34:

    1. assignee changed to: "hobbs"
  3. Ticket change [7f78743007] (rid 97566) by hobbs on 2003-07-17 07:23:13:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      are there any tests for this?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [38db16a6de] (rid 112285) by dgp on 2003-07-17 12:10:13:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      The example in the report is
      a demo of the bug.
      
      If you're looking for something 
      at the script level, try:
      
      package require Tk
      pack [message .m -text a\u0000b]
      
      before fixing the bug, only the
      character "a" will be displayed.
      After the bug fix, all three characters
      are displayed.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [0d655d56f9] (rid 114352) by dgp on 2003-10-03 05:29:21:

    1. assignee changed to: "dkf"
    2. priority changed to: "8"
  6. Ticket change [21ecfc9759] (rid 130664) by dkf on 2003-10-03 17:15:13:

    1. priority changed to: "9 Immediate"
  7. Ticket change [db916e4ef6] (rid 107986) by dkf on 2003-10-08 20:55:35:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Nothing in the Tcl core exhibits the problem; all uses of
      Tcl_NumUtfChars also supply the length.  Will need to add
      some extra code to tclTest.c to check this...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [3a61f4ef48] (rid 112557) by dkf on 2003-10-08 21:28:09:

    1. status changed to: "Closed"
  9. Ticket change [d69da8cb1d] (rid 123838) by dkf on 2003-10-08 21:28:10:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      testing for and fixed in head and 8.4 branch
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. username: "dkf"
  10. Ticket change [2c4e0c863f] (rid 118878) by dkf on 2003-10-08 21:28:11:

    1. closedate changed to: "2003-10-08T14:28:11"
    2. closer changed to: "dkf"