Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 82f589be52e6371adae1b63459f0e2b918258f05332252deb6407d8e71324f65
Ticket: 084ab982fea4c32aaab57251eeea0d7c829893a0
Use -strict to disable noncharacters
User & Date: jan.nijtmans on 2022-12-02 12:42:39
Changes

  1. closedate changed to: "2459916.02962865"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    > Additionally we the mode -strict 1 (which is a bit a confusing name) which raises error on surrogate and noncharacter.
    
    The "-strict 1" mode does more than only raising errors on noncharacters. The default utf-8 decoder tries to correct obvious error, in 'strict' mode it doesn't do that any more. e.g.:
    <pre>
    $ tclsh9.0
    % encoding convertfrom utf-8 \xA1
    ยก
    % encoding convertfrom -strict utf-8 \xA1
    unexpected byte sequence starting at index 0: '\xA1'
    %
    </pre>
    
    '-strict 1' mode is a flag, whose behavior is implemented by every encoder/decoder separately.
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"