Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e085f7e54fc18f4f0eb7787109ec2d8d87eba96d
Ticket: 2373594fffffffffffffffffffffffffffffffff
[scan %i] shuns 0b
User & Date: ferrieux on 2008-12-01 21:29:55
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "7 High"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "23. [scan]"
  11. title changed to: "[scan %i] shuns 0b"
  12. type changed to: "Bug"