Skip to content
Tcl Source Code Artifact [260aba3fce]
Login

Artifact [260aba3fce]

Artifact 260aba3fceeee6320ba8fe2c8e6ff7be899ecaed3b9a031e3be7232d5a00d66b:

Ticket change [260aba3fce] - Ticket [28de50dcee4f6888|28de50dcee] <i>Crash on invalid Unicode code points</i> status still Closed with 4 other changes by jan.nijtmans on 2026-11-26 08:11:55.
D 2026-11-26T08:11:55.259
J closedate 2461370.8416117942
J icomment >\sIf\sthat\sis\sthe\scase,\sI\swould\spropose\smandating\sTCL_UTF_MAX=4\sfor\sTcl\s9\r\n\r\nTcl\s9\sitself\scan\sonly\sbe\scompiled\swith\sTCL_UTF_MAX=4.\sBut\sextensions\scan\scompile\swith\s-DTCL_UTF_MAX=3,\sthen\sTcl_UniChar\sbecomes\sa\sshort,\sand\s(almost)\sall\s'UniChar'\sAPI\smaps\s\sto\sthe\sChar16\sequivalent\sfunctions.\sSee\s[https://core.tcl-lang.org/tips/doc/trunk/tip/497.md|TIP\s#497],\sthe\s'Compatibility\ssection':\r\n\r\n'An\salternative\sis\scompile\sthe\sextension\susing\s-DTCL_UTF_MAX=3.\sThis\swill\srestore\ssizeof(Tcl_UniChar)\s==\s2\sas\svisible\sfor\sthe\sextension.\sAlmost\sall\s(non-deprecated)\sTcl\sAPI's\scan\sstill\sbe\sused\sby\sthe\sextension,\seven\sthe\sones\susing\sTcl_UniChar,\sexcept:\sTcl_NewUnicodeObj(),\sTcl_SetUnicodeObj(),\sTcl_GetUnicodeFromObj(),\sTcl_GetUnicode().\sThere\sis\sno\sneed\sto\sre-compile\sTcl\susing\s-DTCL_UTF_MAX=3\sfor\sthe\sextension\sto\swork.'
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 28de50dcee4f6888eaed987bf1d795ac67138b5f
U jan.nijtmans
Z 8481f49163a0e9ec65e583b06d97ffb1