Skip to content
Tcl Source Code Artifact [9e55f7cdaf]
Login

Artifact [9e55f7cdaf]

Artifact 9e55f7cdaf5b33654b467e369ca70be005ea5c940d8fe1a86b02528f5915e6b3:

Ticket change [9e55f7cdaf] - Closed ticket [d10d6ddf29586438|d10d6ddf29]: <i>UTF-16 Unicode escapes should continue to work in version 9.0</i> plus 7 other changes by jan.nijtmans on 2024-08-22 11:32:48.
D 2024-08-22T11:32:48.770
J assignee jan.nijtmans
J closedate 2460544.98112002
J closer jan.nijtmans
J icomment >\s@bhaible,\sone\smore\stime,\sparsing\sof\su\ssyntax\shas\snot\schanged\sbetween\sTcl\s8.6\s(any\spatchlevel)\sand\sTcl\s9\r\n\r\nWhat\schanged\sin\sTcl\s9\sis\sthe\s"UtfToUtf"\sencoding\sused\swhen\sinputting\sor\soutputting\sutf-8.\sThis\sfunctions\sis\sassumed\sto\sconvert\sinvalid\sutf-8\sto\svalid\sutf-8\swhenever\spossible.\sThat\salso\smeans\sthat\ssurrogate\spairs\sare\scombined\swhen\swritten\sto\sstdout.\sTcl\s9\sdoesn't\sdo\sthat\sany\smore,\swhich\smeans\sthat\sthe\ssurrogate\spairs\sare\skept\sas-is,\sand\s(due\sto\sthe\s'strict'\sprofile)\sresult\sin\san\sexception.\r\n\r\nSo,\sindeed,\sthe\sparsing\sdidn't\schange\sbetween\s8.6\sand\s9.0.\sIt's\sthe\soutput\sconversion\swhich\sjoins\sthe\ssurrogates,\sand\s-\stherefore\s-\sappears\sto\sdo\sthe\sright\sthing\sin\s8.6.\r\n\r\nMy\sadvice:\sHandle\sit\slike\s[https://core.tcl-lang.org/tk/file?udc=1&ln=135-140&ci=c40f927d8d513464&name=library%2Fdemos%2Funicodeout.tcl|this]
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Wont\sFix
J status Closed
K d10d6ddf295864389294b966163a23a58b9a1e72
U jan.nijtmans
Z b6631ee3aea4a31f7955e0f0df9f5bf0