Skip to content
Tcl Source Code Artifact [8a61cc4a57]
Login

Artifact [8a61cc4a57]

Artifact 8a61cc4a5769b1cd796bd9beac5dc4a4ab72e4ebd7e963c413fd1afe111d0322:

Ticket change [8a61cc4a57] - Ticket [d10d6ddf29586438|d10d6ddf29] <i>UTF-16 Unicode escapes should continue to work in version 9.0</i> status still Open with 3 other changes by apnadkarni on 2024-08-12 17:09:10.
D 2024-08-12T17:09:10.676
J icomment @bhaible,\ssince\syou\smentioned\s29\syears\sof\sTcl\s:-)\scompare\sTcl\s8.6.4\swith\sTcl\s9\swhen\sit\scomes\sto\sscanning\sthe\s\\uxxxx\ssequences.\r\n\r\n```\r\n%\spackage\sreq\sTcl\r\n8.6.4\r\n%\sscan\s\\ud83d\\ude03\s%c%c\r\n55357\s56835\r\n```\r\n\r\nand\r\n\r\n```\r\n%\spackage\sreq\sTcl\r\n9.0b3\r\n%\sscan\s\\ud83d\\ude03\s%c%c\r\n55357\s56835\r\n```\r\n\r\nThe\sparsing/scanning\sis\sidentical\sas\syou\ssee.\r\n\r\nOn\sthe\sother\shand,\snewer\sTcl\s8.6.x\sare\sdifferent\s(x\s>=\s10?)\r\n\r\n```\r\n%\spackage\sreq\sTcl\r\n8.6.14\r\n%\sscan\s\\ud83d\\ude03\s%c%c\r\n128515\s{}\r\n```\r\n\r\nNote\show\s8.6.14\sdiffers\sfrom\s8.6.4.\sThis\sis\swhat\sI\swas\sreferring\sto\searlier.\r\n\r\nNow\swith\sreference\sto\syour\sputs\sexample,\sas\syou\scan\ssee,\sthe\sscan\scharacters\sare\sNOT\scombined\sin\seither\s8.6.4\sor\s9.0\sso\sthe\spresumption\sthat\sit\sis\sa\sparsing/scanning\sproblem\sin\s9.0\sdoes\snot\sseem\slikely\sgiven\syour\sstatement\sthat\s8.6\snever\shad\sthis\sissue.\sRather\sas\sJan\shints\sat\sin\shis\sresponse,\sthe\sdifference\sseems\sto\sbe\sthat\sTcl\s9\sis\sstricter\sto\sthe\sUnicode\sstandard\sabout\swhere\ssurrogates\smay\sappear\sin\sI/O.\sIn\sparticular,\ssurrogates\sshould\snever\sappear\sanywhere\sexcept\sin\sa\sUTF-16\sstream,\snot\seven\sin\sUTF-8\sor\sUTF-16\sstreams.\sThus\sthe\serror\son\sthe\sputs\scommand.\sAnd\sthere\swas\splenty\sof\sdebate\son\sthis\sand\sthe\smigration\spain\sthis\smight\scause\sbut\sthe\scloser\sadherence\sto\sthe\sUnicode\sstandard\son\sexchange\sof\sdata\swas\sdeemed\simportant.\r\n\r\nWith\srespect\sto\sthe\soriginal\sproblem\syou\sare\shaving,\sI\sunderstand\swhere\syou\sare\scoming\sfrom.\s**Opinion**:\sHowever,\sthe\sfact\sis\sthat\sTcl\s8.6,\sno\smatter\swhat\sversion,\snever\sproperly\ssupported\scharacters\soutside\sthe\sBMP,\sno\smatter\sstuff\sthat\s"happened\sto\swork".\sThat\sincludes\s8.6.11\sand\slater\sthat\scombine\ssurrogates\sin\ssome\sinstances\sand\snot\sothers.\sApplications\sthat\sexpect\sto\srun\son\s8.6\sshould\snot\sbe\susing\sthose\scharacters\sin\smessage\sfiles\s(or\sany\ssource\sfiles\sfor\sthat\smatter.)\sWhile\sit\smay\shave\sbeen\sa\sworkaround\sin\sTcl\s8\sin\scases\swhere\spost-BMP\swere\smandated,\sthere\sis\sno\sreason\sto\scontinue\sdoing\sso\snow\sthat\sTcl\s9\swith\sfull\sUnicode\sis\shere.\sBut\sas\sI\ssaid,\sthat's\smy\sopinion.
J login apnadkarni
J mimetype text/x-markdown
K d10d6ddf295864389294b966163a23a58b9a1e72
U apnadkarni
Z 6c2740651f8d342de0f4615072a20c3c