|
2023-04-24
| ||
| 12:58 | • Closed ticket [a550f9710b]: format %s does not support long strings in uncompile... artifact: 28e5fd37da user: apnadkarni | |
| 12:55 | Fix [a550f9710b] (format bigdata) check-in: 0cb8f90d77 user: apnadkarni tags: trunk, main | |
|
2023-04-09
| ||
| 16:36 | • Ticket [a550f9710b] format %s does not support long strings in uncompiled st... artifact: 39c61ff82c user: apnadkarni | |
| 16:07 | • New ticket [a550f9710b]. artifact: a99cba4a1f user: apnadkarni | |
format %s does not support long strings in uncompiled
Closed / Fixeda550f9710b0c45541762466ec6833de36698f52fCreated 4 years agoUpdated 4 years ago
Descriptionmarkdown2023-04-09 16:07:36
format %s functions correctly when byte compiled but not with direct eval.
% set s [testbigdata string 0x100000000] ; string length $s
4294967296
% string range [format %s $s] end-9 end
6789012345
% set format format
format
% string range [$format %s $s] end-9 end
max size for a Tcl value exceeded
Referenced by1
0cb8f90d77Fix [a550f9710b] (format bigdata) check-in2023-04-24 12:55:35
apnadkarniplain2023-04-09 16:36:24
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.
apnadkarniplain2023-04-24 12:58:00
Fixed in [0cb8f90d77].
Log in (anonymous is fine) to add a comment.