Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 469ee75be55a0d5f64838ceec1c4a8f6786704e6f185610ac42ea9aaea657bcc
Ticket: 27c033c4a60a5124c5a593d164ba4d63a7ba3c66
Differences in default operation of encoding between Tcl 8 and 9
User & Date: apnadkarni on 2023-02-25 05:36:23
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed 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
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Differences in default operation of encoding between Tcl 8 and 9
    
  16. type changed to: "Bug"