Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ce47a18aa97d3aef5344430a7907e436bbf629df
Ticket: 218929ffffffffffffffffffffffffffffffffff
Bug in scan command
User & Date: nobody on 2000-10-26 01:08:01
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2804 Bug
    Version: 8.2
    SubmitDate: '1999-09-16'
    LastModified: '1999-09-20'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 2714 2834
    OS: All
    OSVersion: 4.oe
    Machine: Other
    FixedDate: '1999-09-20'
    FixedInVersion: 8.2.1
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Evelino Bomitali
    
    
    
    Extensions:
    
    none
    
    
    
    Comments:
    
    The documentation in the doc distribution directory states that scan
    
        should have at least a variable in which a result could be stored as in
    
        "scan string format varName ?varName ...?" . However  the message
    
        returned by Tcl_ScanObjCmd allows for no variables as in  "string format
    
        ?varName varName ...?". I sticked to the previous (8.0) release and
    
        required at least one variable.
    
    
    
    ReproducibleScript:
    
    I run make test in the distribution of tcl 8.2. The test scan 3.4 fails
    
        due to the command "scan {] %d"
    
    
    
    ObservedBehavior:
    
    % scan {} %d
    
        unable to alloc 0 bytes
    
        Abort process (core dumped)
    
    
    
    DesiredBehavior:
    
    % scan {} %d
    
        wrong # args: should be "scan string format ?varName varName ...?"
    
    
    
    Patch:
    
    495c495,496
    
    <     if (objc < 4) {
    
    ---
    
    >
    
    >     if (objc < 3) {
    
    497c498
    
    <               "string format varName ?varName ...?");
    
    ---
    
    >               "string format ?varName varName ...?");
    
    
    
    PatchFiles:
    
    tclScan.c
    
    
    
    
    
    Fixed the alloc bug in 8.2.1. 
    -- 09/20/1999 hobbs
    
  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: "69. Other"
  10. title changed to: "Bug in scan command"
  11. type changed to: "Bug"