Overview
| Artifact ID: | f86286e5423fd5c0cd2b1c4a4b4a2ae82457c4de574f59f0787dacc42002d3d7 |
|---|---|
| Ticket: | a31caff05780aabdd20a8468673340435862dbf9
encoding command does not allow -strict to be used with -failindex |
| User & Date: | oehhar on 2023-01-20 13:38:22 |
Changes
- icomment:
Jan, thank you for the implementation. I looked over it. It would be really great, to: * control the reporting mode *only* by *-nocomplain* and *-failindex*, e.g. to decide, if an error is thrown (no option), error index returned (option -failindex), or if any error causes the use of the replacement character "?" or verbatim input byte inclusion (option -nocomplain). * the option *-strict* only changes the encoding table (e.g. which input bytes are valid and which are not) This would require to change TIP 346 to not implement the 2nd bullet of chapter *Specification*. When I see the implementation, at least from the comments, there is still a mixure that "-strict" changes the reporting mode. <verbatim> generic/tclEncoding.c: 2392: * If in input mode, and -strict or -failindex is specified: This is an error. tests/cmdAH.test 241 } -returnCodes 1 -result {wrong # args: should be "encoding convertfrom ?-nocomplain|?-strict? ?-failindex var?? ?encoding? data"} </verbatim> I think, the error result should be: <verbatim> wrong # args: should be "encoding convertfrom ?-nocomplain|-failindex var? ?-strict? ?encoding? data" </verbatim> So, *-strict* should be totally independent from reporting mode, which is *-nocomplain* or *-failindex*. Thank you and take care, Harald Personal opinion: I am also in favor to widthdraw #346 as error. We already did this with TIP 454 after positive vote, as there were compatibility concerns. TIP454 may get back into life, if Tk9.0 will be approchaed ;-). - login: "oehhar"
- mimetype: "text/x-markdown"
- username: "oehhar"