.
D 2019-12-07T22:03:46.634
J closedate 2458825.41928975
J closer jan.nijtmans
J icomment The\smain\sreason\sfor\sthis\sasymmetry\sis\sthe\sfunction\sTcl_UtfToUniChar(),\swhich\sbehaves\sdifferently\sfor\sTCL_UTF_MAX=6:\s4-byte\sUTF-8-sequences\swill\sbe\sconverted\sto\sUnicode\sin\sone\sstep,\swhile\sfor\sTCL_UTF_MAX=3|4\supper/lower\ssurrogates\swill\sbe\sdelivered.\sThe\sencoding\sshould\sresult\sin\sexactly\sthe\ssame\schars,\sso\sin\scase\sof\sTCL_UTF_MAX=6\swe\shave\sto\ssplit\sthem\sinto\ssurrogates\sourselves.\r\n\r\nAll\scorner-cases\shave\stest-cases,\seven\shigh-surrogates\snot\sfollowed\sby\slow-surrogates\sand\slow-surrogates\snot\spreceded\sby\shigh-surrogates.\sBut\sif\syou\sfind\sa\ssituation\sthat's\shandled\sincorrectly,\splease\slet\sme\sknow.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K fc4393e9b04b2573642251a6aeaf06468339cd55
U jan.nijtmans
Z fa206adeb3c4679ca89920bdac8a88dd