Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b586b3af0702f5508e6b0618da2d28fb67d309e07806357d9951a5a62ba9e70
Ticket: 535705ffffffffffffffffffffffffffffffffff
Tcl interface to stop on encoding errors
User & Date: jan.nijtmans on 2021-05-06 11:53:18
Changes

  1. icomment:
    Implementation modified now, making "-stoponerror/-nothrow" first argument in stead of the last. That's a good idea.
    
    In stead of "-stoponerror 1" I would prefer just "-stoponerror", and in stead of "-stoponerror 0" I would prefer simply "-nothrow". Using boolean flags makes sense when the command has many parameters, but this one only has a few. Also it makes more clear what the two differences are, either stop when an error occurs (throwing an exception then), or don't throw an exception (replacing the invalid byte/char with \uFFFD, as Tcl 8.x does). The default is "-nothrow" in Tcl 8.x and "-stoponerror" in Tcl 9.0. This way is it very well possible to change the default in 9.0.
    
    Thanks for all you are doing!
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"