Skip to content
Tcl Source Code Artifact [cd08992ed5]
Login

Artifact [cd08992ed5]

Artifact cd08992ed55034bef312f9ac16587c12086be8099108c6ebc71611c38a370983:

Ticket change [cd08992ed5] - New ticket [6b1c6bb09c4fc753|6b1c6bb09c] <i>Extended plane character does encode correctly to UTF-16 with TCL_UTF_MAX==4</i>. by anonymous on 2020-11-28 15:03:46.
D 2020-11-28T15:03:46.533
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment When\sI\scompile\sTcl\sfrom\sthe\score-8-branch\s(8.7)\swith\sconfigure\soption\r\nCFLAGS=-DTCL_UTF_MAX=4,\sthe\stest\sbelow\sfails.\s\sNote\sthat\sthis\sproblem\r\ndoes\snot\soccur\swith\sthe\sdefault\sTCL_UTF_MAX=3.\r\n\r\n>>>>>\r\npackage\srequire\stcltest\r\nnamespace\simport\s-force\s::tcltest::*\r\n\r\n#\shex\ss\s-\sFormat\sthe\sstring\sS\sas\sa\shex\sdump.\r\nproc\shex\s{s}\s{\r\n\s\s\s\slmap\sch\s[split\s$s\s""]\s{\r\n\s\s\s\s\s\s\s\sformat\s"%02X"\s[scan\s$ch\s"%c"]\r\n\s\s\s\s}\r\n}\r\n\r\n#set\scatFaceCodepoint\s0x1F639\r\nset\scatFaceUtf\s"\\xF0\\x9F\\x98\\xB9"\r\nset\scatFaceUtf16\s"\\x3D\\xD8\\x39\\xDE"\r\n\r\ntest\sencoding-bug-1\s{encoding:\sextended\sUnicode\sUTF-16}\s{\r\n\s\s\s\sset\stclstring\s[encoding\sconvertfrom\sutf-8\s$catFaceUtf]\r\n\tset\sutf16\s[encoding\sconvertto\sunicode\s$tclstring]\r\n\thex\s$utf16\r\n}\s[hex\s$catFaceUtf16]\r\n<<<<<
J foundin 8.7a4\s(2020-11-28)
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 11198a4027193b80a694e66a04403b2c879b1f6f
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 44.\sUTF-8\sStrings
J title Extended\splane\scharacter\sdoes\sencode\scorrectly\sto\sUTF-16\swith\sTCL_UTF_MAX==4
J type Bug
K 6b1c6bb09c4fc75326b37f5c7dcdaa44c0a7b6a5
U anonymous
Z 8562b2b5c14ba235131642988856f077