Skip to content
Tcl Source Code Artifact [0b586b3af0]
Login

Artifact [0b586b3af0]

Artifact 0b586b3af0702f5508e6b0618da2d28fb67d309e07806357d9951a5a62ba9e70:

Ticket change [0b586b3af0] - Ticket [535705ffffffffff|535705ffff] <i>Tcl interface to stop on encoding errors</i> status still Open with 3 other changes by jan.nijtmans on 2021-05-06 11:53:18.
D 2021-05-06T11:53:18.279
J icomment Implementation\smodified\snow,\smaking\s"-stoponerror/-nothrow"\sfirst\sargument\sin\sstead\sof\sthe\slast.\sThat's\sa\sgood\sidea.\r\n\r\nIn\sstead\sof\s"-stoponerror\s1"\sI\swould\sprefer\sjust\s"-stoponerror",\sand\sin\sstead\sof\s"-stoponerror\s0"\sI\swould\sprefer\ssimply\s"-nothrow".\sUsing\sboolean\sflags\smakes\ssense\swhen\sthe\scommand\shas\smany\sparameters,\sbut\sthis\sone\sonly\shas\sa\sfew.\sAlso\sit\smakes\smore\sclear\swhat\sthe\stwo\sdifferences\sare,\seither\sstop\swhen\san\serror\soccurs\s(throwing\san\sexception\sthen),\sor\sdon't\sthrow\san\sexception\s(replacing\sthe\sinvalid\sbyte/char\swith\s\\uFFFD,\sas\sTcl\s8.x\sdoes).\sThe\sdefault\sis\s"-nothrow"\sin\sTcl\s8.x\sand\s"-stoponerror"\sin\sTcl\s9.0.\sThis\sway\sis\sit\svery\swell\spossible\sto\schange\sthe\sdefault\sin\s9.0.\r\n\r\nThanks\sfor\sall\syou\sare\sdoing!
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 535705ffffffffffffffffffffffffffffffffff
U jan.nijtmans
Z 666039f20e6468f34d3b991be77f04bb