Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae2493a9489b3721f89a7b7901b86fe6626dc86b
Ticket: 1284178fffffffffffffffffffffffffffffffff
[format %h?] rejects valid integers
User & Date: dgp on 2005-09-08 01:29:50
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    A related issue is integer [format]s without
    a length specifier, for example:
    
    % format %u 0xffffffff
    4294967295
    % format %u 0x100000000
    integer value too large to represent
    
    As with the "h"-constrained formatting,
    we could truncate to the native length
    of a long before formatting and accept
    the wide argument.  Doing that would
    produce:
    
    % format %hu 0x100000000
    0
    
    However, this behavior is actually
    tested by the test suite via tests
    format-17.1 and format-18.2 .  The
    restriction and these test don't really
    make sense to me, but perhaps a
    maintainer knows better?
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"