.
D 2026-11-25T14:17:44.891
J assignee apnadkarni
J closedate 2461370.0956584606
J closer jan.nijtmans
J icomment Thanks\sfor\sfixing\sthis!\s\sI\sagree\swith\sthis\ssolution,\sand\smerged\sit\sto\score-9-0-branch\sand\score-8-6-branch\stoo.\r\n\r\n>...\s\sTCL_COMBINE\s...\sAs\sfar\sas\sI\scan\stell,\sthere\sis\sno\sneed\sin\sTcl\s9\sfor\sthis\sflag\r\n\r\nThe\sflag\sTCL_COMBINE\sis\suseful\sif\syou\swant\sto\sbuild\sa\sUTF-16\sdecoder\susing\sTcl_UniCharToUtf().\s\sThe\salternative\sis\sa\snew\sTcl_Char16ToUtf(),\swhich\sshares\sa\slot\sof\scode\swith\sTcl_UniCharToUtf().\sIt\sdidn't\sseem\sworth\sit\sat\sthe\stime.\r\n\r\nNote\sthat\sthis\scannot\sbe\striggered\sat\spure\sscript-level,\sonly\swhen\sfeeding\sTcl_NewUnicodeObj()\swith\sinvalid\sUTF-32\sdata.\r\n\r\nWhat\scould\sbe\sdone\sadditionally\sis\sadd\sa\scheck\sto\sExtendStringRepWithUnicode,\sline\s4674,\slike:\r\n<pre>\r\ndst\s+=\sTcl_UniCharToUtf(((unsigned)unicode[i]\s<\s0x110000)\s?\sunicode[i]\s:\s0xFFFD,\sdst);\r\n</pre>\r\n\r\nThat\swould\salso\shave\sprevented\sthis\scrash.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K 28de50dcee4f6888eaed987bf1d795ac67138b5f
U jan.nijtmans
Z 94e7afb95f047f0a17fc8dfa53eef4ac