Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8b0c235ce24381692a3f39052b8ec3b6e4f7cd9d164c2d2c85943488a69ec596
Ticket: af4780b0b5245f035803b5fbeb1cfae62f40f821
Improve format #d documentation
User & Date: oehhar on 2025-09-03 11:37:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    On clt, there was the following proposal by Marc Summerfield on the "#" specifier of the format command man page:
    
    <verbatim>
    I suggest replacing:
    
        For d conversions, 0d there is no effect unless the 0 specifier is used
        as well: In that case, 0d will be added to the beginning. 
    
    with:
    
        For d conversions, 0d has no effect; whereas both #d and #0d produce an
        0d prefix.
    
    Might also be worth adding:
    
        Note that width includes any prefix. For example "%06d" shows
        at least 6 digits, but "%#06d" shows at least 4 digits.
    
    Evidence:
    
    Main console display active (Tcl9.0.2 / Tk9.0.2)
    (mark) 61 % format "%d %0d %06d %#d %#0d %#06d" 12 13 14 15 16 17
    12 13 000014 0d15 0d16 0d0017
    </verbatim>
    
  5. foundin changed to: "main"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "oehhar"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "Improve format #d documentation"
  16. type changed to: "RFE"