Overview
| Artifact ID: | e085f7e54fc18f4f0eb7787109ec2d8d87eba96d |
|---|---|
| Ticket: | 2373594fffffffffffffffffffffffffffffffff
[scan %i] shuns 0b |
| User & Date: | ferrieux on 2008-12-01 21:29:55 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
The %i specifier in [scan] is documented as: "The base (i.e. decimal, binary, octal, or hexadecimal) is determined in the same fashion as described in expr." This would seem to suggest that 0b (and possibly 0o) should be handled as 0x. It is not the case; both scan 0b101 %i x scan 0o20 %i x store 0 in x. This can be traced to specific avoidance of these prefixes in tclStrToD.c. The attached patch re-establishes the 0b prefix. It is trivial to extend it to 0o, should the consensus say so.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "ferrieux"
- subsystem changed to: "23. [scan]"
- title changed to: "[scan %i] shuns 0b"
- type changed to: "Bug"