Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85d8ba3c6f1a3bcfb3cad3b6035b26e66b006b4a
Ticket: 218900ffffffffffffffffffffffffffffffffff
Leading zeros in format string conversion.
User & Date: nobody on 2000-10-26 01:07:24
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2605 Bug
    Version: 8.1.1
    SubmitDate: '1999-08-31'
    LastModified: '1999-09-16'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows 95
    Machine: X86
    FixedDate: '1999-09-15'
    FixedInVersion: 8.3b1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Rob Whalley
    
    ReproducibleScript:
    Whether or not the use of leading zeros is legal for string conversions,
        Tcl/Tk 8.0.5 and Tcl/Tk 8.1.1 for Windows convert the following
        differently:
        
        8.0.5: format "%08s" fred
        ->0000fred
        8.1.1 format "%08s" fred
        ->    fred
        
        This is important in a test application we use, in which the format to a
        piece of equipment is a binary string with leading zeros. The test
        script works fine under 8.0.5 but fails under 8.1.1.
        
        Any comments?
    
    ObservedBehavior:
    See above
    
    DesiredBehavior:
    See above
    
    
    
    This is an error on the part of the new Unicode aware format/scan
    code in Tcl. 
    -- 08/31/1999 hobbs
    Fixed, existed for %s and %c cases. 
    -- 09/15/1999 hobbs
    Change that stance.  Checking with the ANSI C spec, this is an
    error on the user's part to expect defined behavior for %08s.
    The patch will stay in for 8.3, but the user should not rely
    on such behavior, because it is still officially "undefined". 
    -- 09/16/1999 hobbs
    
  4. foundin changed to: "final: 8.1.1"
  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: "Leading zeros in format string conversion."
  11. type changed to: "Bug"