Overview
| Artifact ID: | 1a617148c9d7ba306f8750367f971781d7bcd838 |
|---|---|
| Ticket: | 4b12ccb3363e81b132e8dbe12aeec596102be1a8
format/scan %llu doesn't work |
| User & Date: | jan.nijtmans on 2017-04-05 08:14:11 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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.
- foundin changed to: "8.6"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "23. [scan]"
- title changed to: "format/scan %llu doesn't work"
- type changed to: "Bug"