Artifacts Associated With Ticket 27c033c4a60a5124
Ticket change [469ee75be5] (rid 209154) by apnadkarni on 2023-02-25 05:36:23:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
There is an ongoing debate over the default encoding mode (strict etc.) for Tcl 9. A reasonable argument can be made that compatibility overrides conformance. However, if that is the case the default operation must remain the same between Tcl 8 and 9 with **no** differences. Consider ``` % package require Tcl 8.7a6 % binary encode hex [encoding convertto jis0208 \\] 2129 ``` versus ``` % package require Tcl 9.0a4 % binary encode hex [encoding convertto jis0208 \\] unexpected character at index 0: 'U+00005C' ``` My *belief* is this is by design, not a bug, in that on output (as opposed to input) unless -nocomplain is specified an error is raised for the above. This is not compatible behavior. If an argument is being made to maintain compatibility by default, Tcl 9 should remain compatible with Tcl 8 in the above case. /Ashok
- foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
Differences in default operation of encoding between Tcl 8 and 9
- type initialized to: "Bug"
Ticket change [620677788a] (rid 209155) by apnadkarni on 2023-02-25 06:12:14:
- icomment:
Related to the above is http test 7.4.1 which in Tcl 9 expects an error to be generated when configured encoding does not support the character. Again, either the claim should be full compatibility or conformance. Right now, it seems to be somewhere in-between, apparently compatibility on input, conformance on output. Not reasonable in my opinion.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [f8864daa3f] (rid 210850) by jan.nijtmans on 2023-03-24 21:43:20:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460028.40509478"
- closer changed to: "jan.nijtmans"
- icomment:
This is fixed as part of [https://core.tcl-lang.org/tips/doc/trunk/tip/656.md|TIP #656], which makes the default encoding for both Tcl 8.7 and 9.0 "tcl8". So, this ticket can be closed.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"