Skip to content
Tcl Source Code Artifact [bf8539bf21]
Login

Artifact [bf8539bf21]

Artifact bf8539bf217ea17cd249b6eccef26aef2168b72d91aac2f2b9574455f00dd668:

Ticket change [bf8539bf21] - Ticket [1b1f5f0b53e243d4|1b1f5f0b53] <i>Tcl_UtfNext incompatibility in Tcl 8.6.10</i> status still Open with 3 other changes by jan.nijtmans on 2020-04-17 15:34:39.
D 2020-04-17T15:34:39.035
J icomment >\sI\sdon't\sunderstand\sthe\squestion\sabout\stest\sutf-2.11\r\n>\sIt\sis\seffectively\sthe\ssame\stest\sas\sutf-2.8\r\n\r\nNo,\sit's\snot!\sIn\sutf-2.8,\sthe\sbyte\ssequence\sis\s"\\xF0\\x90\\x80\\x80"\swhich\stranslates\sto\sUnicode\scharacter\s\\U10000,\swhich\sis\sperfectly\svalid.\sIn\scontrast,\sutf-2.11,\s"\\xF4\\x90\\x80\\x80",\swould\stranslate\sto\sUnicode\scharacter\s\\U110000.\s\sBut\sthe\smaximum\sUnicode\scharacter\sdefined\sis\s\\U10FFFF,\sso\sit's\stoo\sbig.\sThis\salgorithm,\schecking\sthe\svalidity\sof\sover-long\s4-byte\ssequences\sis\scorrectly\simplemented\sin\sTcl_UtfToUniChar(),\sbut\sit's\snot\scorrectly\simplemented\sin\sTcl_UtfNext()\syet.\sI\sadded\sthis\stest-case\sto\score-8-branch,\sso\syou\scan\ssee\sthat\sthis\sreally\sis\sa\sregression.\r\n\r\nThanks!
J login jan.nijtmans
J mimetype text/plain
K 1b1f5f0b53e243d444628c8f414ea9664b5be44f
U jan.nijtmans
Z e615d20817644d424eebffb509df4af5