<i>Tcl interface to stop on encoding errors</i> status still Open with 3 other changes
by
.
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