<i>Tcl interprets two adjacent surrogate code points as a character encoded using UTF-16</i> status still Closed with 5 other changes
by
.
D 2021-03-10T21:57:58.809
J closedate 2459284.41526399
J icomment I\sjust\sread\sthe\sproposal\sagaiin,\sand\srealized\sit\scontains\sthis:\r\n\r\nOne\sexception\sto\sthis\shas\sto\sbe\smade.\sWhen\susing\sthe\sescace\ssequence\s\\uD800\\uDC00,\sso\sa\svalid\scombination\sof\san\supper\sand\sa\slower\ssurrogate,\sin\sa\sscript,\sthere\sis\sno\sharm\sin\stranslating\sthat\sto\sthe\sintended\sUnicode\scode\spoint.\sIn\sTcl\s8.6\sand\s8.7\sthere\sis\sno\sother\sway\sthan\sthat\sfor\sspecifying\sEmoji.\sAllowing\sthis,\sprovides\sa\supgrade\spath\sfor\sexisting\sscripts\shandling\sEmoji.\sStarting\swith\sTcl\s8.7,\sthe\s"\\UXXXXXX"\sescape\ssequence\sshould\sbe\sused\sfor\sthis.\r\n\r\nSuch\sand\sexception\sruins\severything\sand\sbrings\sus\sback\sto\ssquare\sone,\swhere\sit\sisn't\spossible\sto\scompose\sa\sstring\sof\san\sarbitrary\ssequence\sof\scode\spoints.\s\sThis\sis\stoo\shigh\sa\sprice\sto\spay\sfor\sthe\sability\sto\senter\ssmiley\sfaces.
J login pooryorick
J mimetype text/plain
J resolution None
K 0d61d3a2bb905178694d6cde8147039974600274
U pooryorick
Z 81079b7bc8c5098bdbc51a66f3c34579