Skip to content
Tcl Source Code History Of Ticket 40c61a5d10
Login

History Of Ticket 40c61a5d10

Artifacts Associated With Ticket 40c61a5d10

  1. Ticket change [9620fbda37] (rid 209064) by jan.nijtmans on 2023-02-23 07:36:46:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Compiling the tip-656 branch, I see the following warning:
      
      <pre>
      tclCmdAH.c: In function ‘EncodingConvertParseOptions’:
      tclCmdAH.c:592:14: warning: trigraph ??- ignored, use -trigraphs to enable [-Wtrigraphs]
        592 |             "??-profile profile? ?-failindex var? ?encoding?? data");
      </pre>
      
      Also, when running this:
      
      <pre>
      % encoding convertfrom -profile tcl ascii
      wrong # args: should be "::tcl::encoding::convertfrom ??-profile profile? ?-failindex var? ?encoding?? data"
      </pre>
      
      This doesn't correspond with the TIP text, making 'encoding' mandatory when any other option is used.
      
      Suggested solution, see [https://core.tcl-lang.org/tcl/file?udc=1&ln=591-594&ci=0c53a7c84241948e&name=generic%2FtclCmdAH.c|here]
      
    5. is_private initialized to: "0"
    6. login: "jan.nijtmans"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "jan.nijtmans"
    13. subsystem initialized to: "16. Commands A-H"
    14. title initialized to:
      Compiler warning/inconsistant error-message in TIP #656 implementation
      
    15. type initialized to: "Bug"
  2. Ticket change [fcadd953d7] (rid 209065) by jan.nijtmans on 2023-02-23 07:37:02:

    1. assignee changed to: "apnadkarni"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [562e36a99b] (rid 209066) by apnadkarni on 2023-02-23 09:54:18:

    1. icomment:
      Ah, trigraphs, first time I'm encountering them (inadvertently). I'll fix that.
      
      With respect to your second point, I think the ? around encoding needs to be removed but outermost ? preserved. (Your edit removes the outermost ? which is not the same thing because it makes encoding always mandatory and disallows the 8.6 syntax `encoding convertfrom abc`.
      
      Thanks for pointing this out.
      
      By the way, TIP and implementation are still WIP. I hope to be done before the weekend.
      
      /Ashok
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  4. Ticket change [a344c8328c] (rid 209071) by apnadkarni on 2023-02-23 10:24:47:

    1. icomment: "Fixed in [00b03d47c5]"
    2. login: "apnadkarni"
    3. mimetype: "text/x-fossil-plain"
  5. Ticket change [f21a7b1c19] (rid 209083) by jan.nijtmans on 2023-02-23 11:47:49:

    1. icomment:
      > Your edit removes the outermost ? which is not the same thing ...
      
      Did you notice the usage of "INTERP_ALTERNATE_WRONG_ARGS"? Most likely you are not aware of this feature. It's what other commands (like "socket") use when the syntax has multiple alternatives.
      
      <pre>
      % encoding convertfrom -profile tcl ascii
      wrong # args: should be "::tcl::encoding::convertfrom ?-profile profile? ?-failindex var? encoding data" or "::tcl::encoding::convertfrom data"
      </pre>
      
      This way, we put the prefered syntax (making 'encoding' mandatory) first, and the alternative (for 8.6 compatibility) second ☺
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [fb21d8fda5] (rid 209119) by apnadkarni on 2023-02-24 03:00:45:

    1. icomment:
      Sorry, you're right on all counts. I didn't know about the INTERP_ALTERNATE_WRONG_ARGS feature, didn't notice it in your patch and message. Should have looked more closely.
      
      It is indeed better. Will make that fix. Thanks.
      
      /Ashok
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  7. Ticket change [4d6d17af3b] (rid 209125) by apnadkarni on 2023-02-24 03:36:20:

    1. login: "apnadkarni"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
  8. Ticket change [532f030975] (rid 209126) by apnadkarni on 2023-02-24 03:37:17:

    1. closedate changed to: "2459999.65090038"
    2. closer changed to: "apnadkarni"
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"