Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 05350ae59415c691c3d4b26e168537a00fd39482edb96a3a84482bfd4897ce12
Ticket: a31caff05780aabdd20a8468673340435862dbf9
encoding command does not allow -strict to be used with -failindex
User & Date: pooryorick on 2023-01-18 12:31:16
Changes

  1. icomment:
    There is no need to provide an option to configure the encoder/decoder to
    handle surrogate characters in some special way.  The Unicode specification is
    clear enough on their use, and where they may and may not occur.  There has
    never been an example provided in any TIP or message of when "-strict" in its
    current incarnation ("disallow surrogate characters in utf encoding forms")
    might be needed, and there never will be.  Surrogate characters are already
    disallowed in those encoding forms by the Unicode specification.  The
    encoder/decoder can just follow the specification on this count.
    
    "-strict" is a useless option, and "-nocomplain" was introduced to provide the
    functionality that should have been provided by "-strict".  "-nocomplain" is
    the wrong name for the option that controls raising an error on an encoding
    error, because there are too many ways not to complain.  There should be one
    option that specifically says "raise an error", and other options that
    configures the encoder not to complain in different useful ways.
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"