.
D 2021-11-15T21:01:14.760
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment It\sseems\sthat\sthe\smacJapan\sencoding\sis\sincomplete\sin\sthat\sit\sdoes\snot\sdeal\swith\sthe\sfull\srange\sof\scharacters\sas\soutlined\sin\sthe\sspec.\r\n\r\nhttps://unicode.org/Public/MAPPINGS/VENDORS/APPLE/JAPANESE.TXT\r\n\r\nBackground:\sI\sam\sspitting\sout\sraw\sfilename\sdata\sfrom\sJapanese\sCD-ROMs\s(using\shfsutils'\shls\scommand)\sand\sreceive\sthe\sfollowing\sstream\sof\sbytes:\r\n3A90\sBB95\s6991\sCC8C\sB194\sC53A\r\n\r\n(I\slist\sthe\sbyte\sstreams\sso\syou\scan\seasily\sreproduce\sthis\sdata)\r\n\r\nthese\sbytes\sshould\sbe\sencoded\sto:\r\n3AE8\sA3BD\sE593\s81E4\sBD93\sE9A8\s93E7\s8988\s3A0A\r\n\r\n(the\scorrect\sUTF-8\srepresentation\sis\s:製品体験版:\sthe\scommas\sare\spart\sof\sthe\stext)\r\n\r\nbut\susing\sTcl\s[encoding\sconvertfrom\smacJapan]\sit\sis\sencoded\sto:\r\n3AE8\sA3BD\sE593\s81C2\s910C\sEFBD\sB1E7\s8988\s3A0A\r\n\r\nThe\sproblematic\sbytes\sin\sthis\sexample\sare:\r\n\r\n91CC\s(should\sbe\smapped\sto\s4F53,\sbut\sTcl\smaps\sto\sE4BD\s93)\r\n8CB1\s(should\sbe\smapped\sto\s9A13,\sbut\sTcl\smaps\sto\sE9A8\s93)\r\n\r\nIt's\sodd\sthat\sthey\sare\sencoded\sinto\sthree\sbytes?\r\n\r\nThese\scharacters\sare\sin\sthe\srange\scovered\sby\sJIS\sX0208-1990,\sbut\splease\sbe\saware\sI\shave\snot\sdone\sany\sinvestigation\sto\ssee\show\sdeep\sthis\sproblem\sgoes.\r\n\r\nFinally,\sI\ssee\sin\shttps://core.tcl-lang.org/tcl/info/535705ffffffffff\sthat\sencoding\sproblems\swill\sgenerate\serrors\sin\sfuture,\swhich\sis\sgreat!\sThat\swould\sreally\shelp.
J foundin 8.5.9
J is_private 0
J login gingerbeardman
J priority 5\sMedium
J private_contact 58d078b5c35ea0d0420ca553025ffab67e7e91f5
J resolution None
J severity Minor
J status Open
J submitter gingerbeardman
J subsystem -\sNew\sBuiltin\sCommands
J title macJapanese\sencoding\sis\sincomplete
J type Bug
K 5b5ba0aa0d0c78636f2fef90558e2b84c3e4bae4
U gingerbeardman
Z 87cb494aff0de2efc60116fcd6aa4dec