Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90e4921a3f584f475cb0858d4c4e25551aec27a1
Ticket: 684744ffffffffffffffffffffffffffffffffff
embedded NULL foils [info complete]
User & Date: dgp on 2003-02-11 17:07:53
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The Tcl parse was rewritten for release 8.1
    to allow for embedded NULL characters
    to be treated just like any other character.
    The parser is written to tokenize it like any
    other.  For example:
    
    % proc bytestring s {return [encoding convertfrom
    identity $s]}
    % proc [bytestring \x00] {} {puts NULL}
    % [bytestring \x00]
    NULL
    % eval [bytestring \x00]
    NULL
    
    However, an embedded NULL stops the parsing
    of [info complete]:
    
    % info complete [bytestring "\x00;if 1 \{"]
    1
    
    [info complete] never scans past the NULL
    to discover the missing close-brace
    incompleteness.
    
    NOTE: This example will not work in the current
    HEAD due to Tcl Bug 684699
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "embedded NULL foils [info complete]"
  11. type changed to: "Bug"