Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ea7aa111d02cd89d4fc18cb3e97b7bd0d85e2981
Ticket: 219201ffffffffffffffffffffffffffffffffff
string compare \x00 \x20 incorrectly returns 1
User & Date: nobody on 2000-10-26 05:03:29
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3103 Bug
    Version: 8.2
    SubmitDate: '1999-10-15'
    LastModified: '1999-10-15'
    Severity: SER
    Status: Assigned
    Submitter: hobbs
    ChangedBy: hobbs
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Exists since 8.1a1.  The problem is the memcmp case, which doesn't
    take into account that the NULL byte is 2 \x80's.
    
    There is a work-around:
        string compare -length 1 \x00 \x20
    
    
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "57. zlib"
  10. title changed to: "string compare \x00 \x20 incorrectly returns 1"
  11. type changed to: "Bug"