Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a617148c9d7ba306f8750367f971781d7bcd838
Ticket: 4b12ccb3363e81b132e8dbe12aeec596102be1a8
format/scan %llu doesn't work
User & Date: jan.nijtmans on 2017-04-05 08:14:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Example: 
    
    <pre>
    $ tclsh8.6
    % scan 57 %llu a
    unsigned bignum scans are invalid
    % format %llu 57
    unsigned bignum format is invalid
    </pre>
    
    In ticket [1527169fffffffffffff|1527169] I found the following explanation:
    "... and provided %llx, %llo, %llu and %lld format groups that work the same on all platforms."
    
    Yes, %llu is provided on all platforms the same, but it always gives this error-message even though the provided number is positive. There is no reason why this would give an error, this error is not documented anywhere, neither are there any test-cases.
    
    Suggestion (for 8.6 and up): Only when the formatted/scanned number is negative give this (same) error (for compatibility), for positive numbers let it behave the same as %lld. For negative numbers, another behavior could be implemented, but that's food for another TIP.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "23. [scan]"
  14. title changed to: "format/scan %llu doesn't work"
  15. type changed to: "Bug"