Skip to content
Tcl Source Code Artifact [28254a00d7]
Login

Artifact [28254a00d7]

Artifact 28254a00d7dea154d8857a975e3ffccb63179e661132c96d1c9cc699b6f8e72e:

Ticket change [28254a00d7] - New ticket [69634d51fb74551b|69634d51fb] <i>handling out of range UCS4 values</i>. by dgp on 2020-04-29 15:40:29.
D 2020-04-29T15:40:29.545
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\svalid\srange\sof\sunicode\sextends\sfrom\sU+0000\sto\sU+10FFFF.\s\sRoutines\r\nthat\saccept\san\sint\sargument\smeant\sto\srepresent\sa\sunicode\scode\spoint\shave\r\nto\sdecide\show\sto\shandle\sa\svalue\sof\s0x110000\sand\sabove.\s\sOne\sexample\sis\r\nthe\sroutine\sTcl_UniCharIsGraph(),\sbut\sthere\sare\smany.\r\n\r\nTcl\s8.5\sroutes\sthe\shandling\sto\sthe\sinner\sworkings\sof\sGetUniCharInfo(),\r\nwhich\smasks\saway\sunacceptable\shigh\sbits.\s\sThis\sindicates\sthat\r\n\r\nTcl_UniCharIsGraph(\s0x200041)\swill\sreturn\s1\s(masked\sto\smake\s\\x41\s"A")\swhile\r\nTcl_UniCharIsGraph(\s0x200020)\swill\sreturn\s0\s(masked\sto\smake\s\\x20\s"\s").\s\sSince\r\nthese\sare\sboth\sinvalid\sinputs,\sI\sthink\sit\swould\smake\smore\ssense\sto\shave\sthem\r\nproduce\sthe\ssame\sresults.\s\sIn\smany\ssituations,\sinvalid\sinputs\sare\stransformed\r\ninto\sU+FFFD,\sthe\sreplacement\scharacter.\sThat\smakes\smore\ssense\sto\sme.\r\n\r\nMoving\sforward\sthrough\sversions\sand\svariants,\sthere\sare\sdifferent\shandlings\sin\splace.\r\nIn\s8.7,\sthere\sis\smasking\sof\sthe\soutput\sof\sroutines\slike\sTcl_UniCharToLower,\r\nwhen\sthe\sconstraint\swould\sseem\sto\sbe\smore\suseful\son\swhat\scomes\sin\sinstead\r\nof\swhat\sgoes\sout.
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter dgp
J subsystem 44.\sUTF-8\sStrings
J title handling\sout\sof\srange\sUCS4\svalues
J type Bug
K 69634d51fb74551bb4dfcd0b4e9097679e8f4a05
U dgp
Z 776e958817a1ef8ae8eeb72d862cbb30