Skip to content
Tcl Source Code History Of Ticket 821499
Login

History Of Ticket 821499

Artifacts Associated With Ticket 821499

  1. Ticket change [0d46d633ee] (rid 114333) by dgp on 2003-10-10 21:38:50:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      #include "tcl.h"
      
      int
      main(int argc, char **argv)
      {
          Tcl_UniChar ch = 0;
          Tcl_Obj *objPtr = Tcl_NewUnicodeObj(&ch,0);
      
          Tcl_AppendToObj(objPtr,"\302\242",1);
          ch = Tcl_GetUniChar(objPtr, 0);
          if (ch != 0xC2) {
              printf("BUG!\n");
              if (ch == 0xA2) {
                  printf("Tcl_AppendToObj scanned > 1 byte\n");
              }
          }
      }
      
      
      Compile and run this test program for evidence
      that Tcl_AppendToObj does not honor its
      length argument.  It will scan more than "length"
      bytes if it thinks it's in the middle of a UTF-8 sequence.
      
    4. foundin initialized to: "obsolete: 8.5a0"
    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: "10. Objects"
    10. title initialized to: "Tcl_AppendToObj disobeys length "
    11. type initialized to: "Bug"
  2. Ticket change [1c5d31f7e8] (rid 90587) by jenglish on 2003-10-11 07:14:29:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      I think a case can be made that this is an illegal use of
      Tcl_AppendToObj().  It's not clear from the documentation
      whether Tcl_AppendToObj() expects UTF-8 or "Lax UTF-8" as
      input.  If the former, then this isn't actually a bug, since
      the input is illegal.  If the latter, then it is a bug.
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  3. Ticket change [8f9c197635] (rid 120308) by hobbs on 2004-02-07 02:37:05:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      let's call this a doc bug ... Tcl_AppendToObj should say
      something about "undefined behavior when invalid utf-8
      sequences are passed".
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [52635e6667] (rid 126308) by msofer on 2004-03-27 04:54:37:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Doc bug about utf-8 stuff? Better leave it to people who
      know: dgp?
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [a933a958da] (rid 99115) by dgp on 2004-03-27 04:58:56:

    1. assignee changed to: "jenglish"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      I'm the wrong guy for
      the prescribed fix.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"