Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 77874b2e4682f113bd9a7ed1d743129d6e910dcbb0195e3375b15ddb8c450697
Ticket: 084ab982fea4c32aaab57251eeea0d7c829893a0
Use -strict to disable noncharacters
User & Date: pooryorick on 2022-12-26 20:31:11
Changes

  1. closer changed to: "nobody"
  2. icomment:
    Overloading <code>-strict</code> for this purpose is incorrect, as <code>-strict</code> should be dedicated to how to handle invalid data in an encoding, not on choosing which data to consider invalid.  This is a separate concern that should be handled by separate options.  By default, an encoder/decoder should conform to the specification, and options can be provided to direct the encoder/decoder to deviate in some way.  In this case, a suitable option might be <code>-onlychars 1</code>, with the default being <code>-onlychars 0</code> to conform to the specification.  There could be additional options such as <code>-surrogates 1</code> (default is <code>-surrogates 0</code>) and <code>-nonchars 0</code> (default is <code>-nonchars 1</code>).  This is more complicated, but oversimplification can be a bad thing.  The Unicode specification entails a certain amount of complexity, and there is no way around that.  In the case of Unicode, the proper target for Tcl is fidelity.
    
  3. login: "pooryorick"
  4. mimetype: "text/x-fossil-wiki"
  5. resolution changed to: "Accepted"
  6. status changed to: "Open"