Ticket Change Details
Not logged in
Overview

Artifact ID: 39c61ff82c7c73095ca19b8ede27c43215f32021e9a5bda3c7fbdbea9c77c671
Ticket: a550f9710b0c45541762466ec6833de36698f52f
format %s does not support long strings in uncompiled
User & Date: apnadkarni 2023-04-09 16:36:24
Changes

  1. icomment:
    A variant, where the format string itself is long, does not work in either compiled or uncompiled modes.
    
    ```
    % set s [testbigdata string 0x100000000] ; string length $s
    4294967296
    % append s %s ; string length $s
    4294967298
    % string length [format $s X]
    max size for a Tcl value exceeded
    % string length [$format $s X]
    max size for a Tcl value exceeded
    ```
    
    Further, large values for precision and width raise the same error.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"