Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dcfcec2466ebe9ccfa911c90a49f89ac0e88d344cc525fffe2e9edeb06342f80
Ticket: 535705ffffffffffffffffffffffffffffffffff
Tcl interface to stop on encoding errors
User & Date: oehhar on 2021-05-06 15:11:22
Changes

  1. icomment:
    Jan,
    thank you for the edits in the TIP. I merged them in the TIP happily.
    
    May I raise one minor point?
    
    I am not in favor to include the byte value in hex of the input byte causing the conversion error.
    The reasons are:
    
       *   In a multi-byte sequence like an invalid utf-8 sequence, the error is not just one byte, but a series of bytes. Unfortunately, only the first byte is shown.
       *   When converting to a single byte encoding (example ISO-8859-1), the error byte value will be the first byte of an utf-8 sequence. IMHO this causes more issues than it helps.
       *   The error will not happen on ASCII characters (they always convert to everything). The error will happen on special characters where only a very limited number of persons know (and understand) the Byte Codes.
    
    Any opinion welcome.
    
    Thank you,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"