Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b524ff3bad79abb0a85a58f61d8108a9a3880d8bc252e502f3a44bd17ae11a1
Ticket: 2dff98e0791720bdde656d47762553c1089684a4
format %A garbles negative, padded and infinite values
User & Date: jan.nijtmans on 2026-10-18 08:53:28
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    Just one thing left to fix. With msvcrt (not ucrt):
    <pre>
    ==== format-19.5 %A with sign, padding and Inf, bug [2dff98e079] FAILED
    ==== Contents of test case:
    
        # explicit precision: without it MSVC prints all 13 hex digits
        list [format %.1A 1.5] [format %.1A -1.5] [format %+.0A 1.0]  [format "% .0A" 1.0] [format %10.1A 1.5] [format %-10.0A| -2.0]  [format %A Inf] [format %A -Inf]
    
    ---- Result was:
    0x1.8p+0 -0x1.8p+0 +0x1p+0 { 0x1p+0} {  0x1.8p+0} {-0x1p+1   |} 0x1.#INF00p+0 -0x1.#INF00p+0
    ---- Result should have been (exact matching):
    0x1.8p+0 -0x1.8p+0 +0x1p+0 { 0x1p+0} {  0x1.8p+0} {-0x1p+1   |} INF -INF
    ==== format-19.5 FAILED
    </pre>
    
    Matching with -glob would be easiest: If it contains 'INF' that should be OK
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/x-fossil-wiki"
  5. status changed to: "Pending"