Skip to content
Tcl Source Code History Of Ticket 0cb3554903
Login

History Of Ticket 0cb3554903

Artifacts Associated With Ticket 0cb3554903

  1. Ticket change [6f6a5c82af] (rid 210943) by chrstphrchvz on 2023-03-26 10:29:37:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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?
      
    5. foundin initialized to: "8.6.13"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "52. Portability Support"
    15. title initialized to: "macOS 13 SDK deprecates sprintf()"
    16. type initialized to: "Bug"
  2. Ticket change [c69915181c] (rid 211102) by jan.nijtmans on 2023-03-28 14:19:53:

    1. icomment:
      I think it would be wise to do the same for Tcl 8.6 (and up) too.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [6ad3888fc2] (rid 218012) by jan.nijtmans on 2023-09-12 12:49:19:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460200.03425613"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [5ee652454c69f504|here]
      
      Closing
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
  4. Ticket change [a7f4073381] (rid 257405) by chrstphrchvz on 2026-10-06 23:25:38:

    1. closedate changed to: "2461320.4761348497"
    2. closer changed to: "chrstphrchvz"
    3. 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. &#91;-Wdeprecated-declarations&#93;
       3461 |                     dateFmt-&gt;output += sprintf(dateFmt-&gt;output, map-&gt;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. &#91;-Wdeprecated-declarations&#93;
       3493 |                 dateFmt-&gt;output += sprintf(dateFmt-&gt;output, map-&gt;tostr, val);
            |                                    ^
      </pre>
      
    4. login: "chrstphrchvz"
    5. mimetype: "text/x-fossil-wiki"
  5. Ticket change [9069e37f5d] (rid 257406) by chrstphrchvz on 2026-10-06 23:26:00:

    1. closer changed to: "nobody"
    2. login: "chrstphrchvz"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  6. Ticket change [c40346f237] (rid 257417) by jan.nijtmans on 2026-10-07 11:07:35:

    1. closedate changed to: "2461320.9636059492"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed (again) [55a4b1b5ed8a432d|here] and in core-9-0-branch too.
      
      Thanks for the reminder!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"