Artifacts Associated With Ticket 0cb3554903fc1419
Ticket change [6f6a5c82af] (rid 210943) by chrstphrchvz on 2023-03-26 10:29:37:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<tt>sprintf()</tt> is deprecated as of the macOS 13 SDK, causing many compiler warnings to be emitted when building Tcl, e.g.: <blockquote><pre> <span style="font-weight:bold">tcl/generic/regerror.c:77:2: <span style="color:purple">warning: </span>'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]</span> sprintf(convbuf, "%d", r->code); /* -1 for unknown */ <span style="color:green;font-weight:bold">^</span> <span style="font-weight:bold">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: </span>'sprintf' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") <span style="color:green;font-weight:bold">^</span> <span style="font-weight:bold">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: </span>expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) <span style="color:green;font-weight:bold">^</span> </pre></blockquote> I notice <tt>sprintf()</tt> has recently been eradicated from Tk 8.6; will there be a similar effort for Tcl 8.6, or is this won’t-fix for 8.6? - foundin initialized to: "8.6.13"
- is_private initialized to: "0"
- login: "chrstphrchvz"
- priority initialized to: "5 Medium"
- private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "chrstphrchvz"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "macOS 13 SDK deprecates sprintf()"
- type initialized to: "Bug"
Ticket change [c69915181c] (rid 211102) by jan.nijtmans on 2023-03-28 14:19:53:
- icomment:
I think it would be wise to do the same for Tcl 8.6 (and up) too.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [6ad3888fc2] (rid 218012) by jan.nijtmans on 2023-09-12 12:49:19:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460200.03425613"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed [5ee652454c69f504|here] Closing
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a7f4073381] (rid 257405) by chrstphrchvz on 2026-10-06 23:25:38:
- closedate changed to: "2461320.4761348497"
- closer changed to: "chrstphrchvz"
- icomment:
Reopening: after this ticket was closed, the tip-688 branch was merged, introducing two calls to <tt>sprintf()</tt>. <pre> tcl91/generic/tclClockFmt.c:3461:26: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 3461 | dateFmt->output += sprintf(dateFmt->output, map->tostr, val); | ^ tcl91/generic/tclClockFmt.c:3493:22: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] 3493 | dateFmt->output += sprintf(dateFmt->output, map->tostr, val); | ^ </pre> - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
Ticket change [9069e37f5d] (rid 257406) by chrstphrchvz on 2026-10-06 23:26:00:
- closer changed to: "nobody"
- login: "chrstphrchvz"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [c40346f237] (rid 257417) by jan.nijtmans on 2026-10-07 11:07:35:
- closedate changed to: "2461320.9636059492"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed (again) [55a4b1b5ed8a432d|here] and in core-9-0-branch too. Thanks for the reminder!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"