Artifacts Associated With Ticket 40c61a5d10e9b647
Ticket change [9620fbda37] (rid 209064) by jan.nijtmans on 2023-02-23 07:36:46:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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]
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
Compiler warning/inconsistant error-message in TIP #656 implementation
- type initialized to: "Bug"
Ticket change [fcadd953d7] (rid 209065) by jan.nijtmans on 2023-02-23 07:37:02:
- assignee changed to: "apnadkarni"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [562e36a99b] (rid 209066) by apnadkarni on 2023-02-23 09:54:18:
- 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
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [a344c8328c] (rid 209071) by apnadkarni on 2023-02-23 10:24:47:
- icomment: "Fixed in [00b03d47c5]"
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
Ticket change [f21a7b1c19] (rid 209083) by jan.nijtmans on 2023-02-23 11:47:49:
- 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 ☺
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [fb21d8fda5] (rid 209119) by apnadkarni on 2023-02-24 03:00:45:
- 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
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [4d6d17af3b] (rid 209125) by apnadkarni on 2023-02-24 03:36:20:
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
Ticket change [532f030975] (rid 209126) by apnadkarni on 2023-02-24 03:37:17:
- closedate changed to: "2459999.65090038"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- status changed to: "Closed"