Skip to content
Tcl Source Code Artifact [88e23725e7]
Login

Artifact [88e23725e7]

Artifact 88e23725e718b0ddd90388a3b0157f126acbe9b661adf7213a7e60c003969457:

Ticket change [88e23725e7] - Ticket [debd088e48998a75|debd088e48] <i>llength split is different from string length</i> status still Open with 3 other changes by sebres on 2021-02-13 13:52:40.
D 2021-02-13T13:52:40.940
J icomment The\sthing\sis\sfor\sthis\sconcrete\scase\sone\scould\ssurely\suse\ssomething\selse\s(string\smap,\sregexp,\ssome\sbinary\sencoder,\swhatever),\sbut\sas\salready\ssaid\sthe\sissue\sis\sabout\scompatibility\sand\sconsistency.\r\nAlso\sbinary\spackages\susing\sutf-routines\sare\saffected\sby\sthe\sregression.\r\n\r\nDon\sconfirmed\sin\sthe\stclchat,\siterating\sand\sindexing\sshould\sagree.\r\nBut\sI\sthink\sthereby\simportant\sis\sno\smatter\swhich\smethod\sone\swould\suse.\r\nRegardless\sit\sis\sa\ssurrogate\spair\sor\snot,\swhich\schar\srepresentation\sis\sconsidered\sas\sright\sand\swhether\sit\sis\shandled\sas\ssingle\sor\stwo\scharacters.\r\n\r\nIf\sI\swould\sbe\sTCT,\sto\ssupport\semojis/etc,\sI\shad\smake\sabsolutely\snew\sclass\sof\sfunctions\sfor\sexample\sTcl_Glyph*\s(and\stcl\sensemble\se.g.\s[glyph])\sand\sretain\sTcl_Uft*/Tcl_Uni*\s(as\swell\sas\s[string]/etc)\sstuff\sunmodified...\sor\seven\sif\sin\sTcl_Uni*\sthen\ssomehow\soptional\s(configurable\sper\sinterp/build),\sso\sit\swould\sbe\scompatible\sand\sexpected,\sas\swell\sas\susable\sthere\swhere\sone\sneeds\sto\suse\sit\s(e.\sg.\srepresentation\son\sdisplay\sor\snavigation\sor\sinput\sin\ssome\seditbox).<br/>\r\n\r\nAnd\sthat\sall\sno\smatter\s8.6,\s8.7\sor\s9.0\s(not\sto\smention\sthat\scurrent\simplementation\sin\s8.6\sresembles\srather\sa\sdirty\sworkaround).\r\n\r\nAs\sfor\scompatibility\s-\s[22324bcbdf]\s(and\sI\sassume\stickets\ssurely\sfollow)\sas\swell\sas\ssuggested\sby\sChristian\sfix\sshow\swhat\sthe\sissue\sis\sand\swhich\seffort\sis\sneeded\sto\sfix\sall\sthat.\sConsequently\sTcl\swould\sdistance\sfrom\sutf-8\sand\smove\sinto\sunicode.\sLet\salone\sa\spossible\sfuture\sshimmering\sof\sseveral\sobject\stypes\sto\sstring\sif\shandling\swould\sprefer\sstring\sobject\smethods\s(if\sconversion\slike\sTclUtfToUniChar\sis\snot\senough\sfor\sthe\shandling).
J login sebres
J mimetype text/x-fossil-wiki
K debd088e48998a758f2927b67c132341954428ea
U sebres
Z 066497eeb8cd18cb95c9332eba36ed19