Skip to content
Tcl Source Code History Of Ticket 218745ffffffffff
Login

History Of Ticket 218745ffffffffff

Artifacts Associated With Ticket 218745ffffffffff

  1. Ticket change [3337f043f7] (rid 106549) by nobody on 2000-10-26 01:04:52:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1975 Bug
      Version: 8.1
      SubmitDate: '1999-05-04'
      LastModified: '1999-05-14'
      Severity: SER
      Status: Released
      Submitter: pat
      ChangedBy: stanton
      RelatedBugIDs: 2047
      OS: Windows NT
      Machine: X86
      FixedDate: '1999-05-07'
      FixedInVersion: 8.1.1
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Matt Newman
      
      
      
      Extensions:
      
      BLT, INCRTCL, TCLX, TNSS, TRF, TCLODBC, SENTCL, LDAP.....
      
      
      
      CustomShell:
      
      Not yet - at last tcl has a binary safe "after" command.
      
      
      
      Comments:
      
      The bug is that when dup'ing the internal rep of a ByteArray it doesn't
      
          set the new objects typePtr - which remains NULL so that when append is
      
          called the object is assumed to contain no data.
      
      
      
      ReproducibleScript:
      
      set hdr [binary format cc 0 0316]
      
          set buf hellomatt
      
          
      
          set data $hdr
      
          #UNCOMMENT TO MAKE WORK!!!#string length $data
      
          append data $buf
      
          
      
          if {[string length $data] == 11} {
      
              tclLog GOOD
      
          } else {
      
              tclLog "BAD: expected 11, got [string length $data]"
      
          }
      
      
      
      ObservedBehavior:
      
      Length is returned as 9 not 11. In fact if you uncomment the string
      
          length $data line it forces an update of the internal string rep then
      
          the script succeeds.
      
      
      
      DesiredBehavior:
      
      Length of 11
      
      
      
      Patch:
      
      diff -c -r1.1.1.2 tclBinary.c
      
      *** tclBinary.c 1999/05/02 23:44:25     1.1.1.2
      
      --- tclBinary.c 1999/05/03 13:37:47
      
      ***************
      
      *** 457,462 ****
      
      --- 457,463 ----
      
            memcpy((VOID *) copyArrayPtr->bytes, (VOID *) srcArrayPtr->bytes,
      
                  (size_t) length);
      
            SET_BYTEARRAY(copyPtr, copyArrayPtr);
      
      +     copyPtr->typePtr = &tclByteArrayType;
      
        }
      
        ♀
      
        /*
      
      
      
      PatchFiles:
      
      generic/tclBinary.c
      
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Use of ByteArray object type is buggy (PATCH)"
    11. type initialized to: "Bug"
  2. Ticket change [d431435f55] (rid 123408) by welch on 2000-10-26 08:28:13:

    1. closedate changed to: "2000-10-26T01:28:13"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [92eda652db] (rid 105728) by dgp on 2001-04-18 06:50:24:

    1. closedate changed to: "2001-04-17T23:50:24"
    2. closer changed to: "dgp"
    3. subsystem changed to: "12. ByteArray Object"