Skip to content
Tcl Source Code Artifact [5aaf8dae8e]
Login

Artifact [5aaf8dae8e]

Artifact 5aaf8dae8e1c0732b2b61bde7d6f0ae3f8ea5a3d25f75e0a88ab6deaba10d10b:

Ticket change [5aaf8dae8e] - Ticket [fc4393e9b04b2573|fc4393e9b0] <i>UnicodeToUtfProc bogus in [edce885a5c]</i> status still Closed with 5 other changes by jan.nijtmans on 2019-12-07 22:03:46.
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