Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2fab18d5881d8bfeadd5c3ed59b5a8bf5dd39046
Ticket: 219021ffffffffffffffffffffffffffffffffff
format "%05s" 12 returns 12 padded on left with blanks; prev
User & Date: nobody on 2000-10-26 01:09:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3992 Bug
    Version: 8.2
    SubmitDate: '2000-01-10'
    LastModified: '2000-01-10'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: HP-UX
    OSVersion: HP-UX B.10.20
    Machine: HP 9000/892
    FixedDate: '2000-01-10'
    FixedInVersion: 8.2.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    Paul Takemura
    
    Extensions:
    protclsh82, Oratcl
    
    Comments:
    Perhaps the format command is now working with the correct behavior.  I can certainly use "%05d" as a format specifier, but this assumes that I'm formatting an integer (which may not always be the case).
    
    ReproducibleScript:
    format "%05s" 12
    
    ObservedBehavior:
    returns bbb12 (where 'b' represents blank)
    
    DesiredBehavior:
    In the past, the command has returned 00012
    
    
    
    This was already fixed in an 8.2 patch release (for sure 8.2.3),
    but it should be noted that the user is relying upon "undefined"
    behavior (according to ANSI spec), so we just made it work like
    8.0, but this behavior is still undoc'ed. 
    -- 01/10/2000 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: "81. Bundled Packages"
  10. title changed to:
    format "%05s" 12 returns 12 padded on left with blanks; prev
    
  11. type changed to: "Bug"