<i>jis0208 encoding fails for ASCII input</i> status still Open with 3 other changes
by
.
D 2021-06-12T10:18:01.554
J icomment From\sthe\sTclers'\schat:\r\n\r\naspect:\r\nEven\swith\spreference\sfor\sdoubl\swidth\sencoding\sconvertto\sand\sconvertfrom\sshould\smatch"\s...\swell,\snecessarily\snot\salways\r\n\r\nif\s(what\sseems\sto\sbe\sthe\scurrent\sinterpretation)\sonly\sfullwidth\sLatin\scharacters\sexist\sin\sthe\starget\sset,\sthen\s"a"\scan't\sround-trip\r\n2:38\r\nif\sthe\sencoding\sinterprets\swhat's\sin\sthat\stable\sto\smean\sthat\sboth\su+0061\sand\su+ff41\smap\sto\sthe\ssame\sencoding,\sthen\sonly\sone\sof\sthose\scan\sround-trip\r\n\r\napn:\r\n@aspect,\sI\swasn't\seven\saware\sthere\swas\sa\sfull\swidth\sa\s(thereby\sshowing\smy\signorance\sin\sthis\sarea).\sSo\sare\syou\ssaying\sit\sis\snot\sa\sbug\sbecause\sno\sround\stripping\sis\spossible?\r\n\r\naspect:\r\nwell\sit\smight\sbe\sa\sbug\s-\sbit\seven\sif\sit\sis,\ssome\sround\strips\swill\snot\sbe\spossible.\s\sI\sdon't\sknow\swhether\sit's\sbetter\sfor\sjis0209\sto\smap\sascii\slatin\scharacters\svs\sfullwidth\sversions,\sor\sif\sthe\sversion\sof\s[encoding\sconvertto]\sthat\stakes\sboth\sto\sthe\ssame\scodepoints\sis\sa\sgood\sidea\r\n\r\npooryorick:\r\napn,\sthe\sbug\sis\sthat\s[encoding\sconvertfrom]\sconverts\sone\scharacter\sto\sanother\scharacter.\r\n\r\npooryorick:\r\naspect,\swhy\sshould\s[enocding\sconvertfrom]\sconvert\sa\snarrow\s"a"\sto\sa\swide\s"a"?\r\n\r\naspect:\r\nIt\sdoesn't\r\n[encoding\sconvertfrom\sjis0208\s[encoding\sconvertto\sjis0208\sa\\uff41]]\sproduces\s"\\uff1f\\uff41".\s\sThat\smatches\sthe\sintermediate\sencoded\sbytes.\s\sThe\schange\sis\swhen\sconvertto\sdoesn't\sknow\show\sto\sencode\s"a"\sso\sit\ssubtitutes\sa\sfullwidth\squestion\smark\r\n\r\nSo\sI\sdo\snot\sknow\sif\sthis\sis\sa\sreal\sbug\sor\snot.\sIt\swas\scertainly\ssurprising\sbehavior\sto\sme.\sI'll\sleave\sopen\sfor\ssomeone\sknowledgeable\sto\smark\sappropriately.
J login apnadkarni
J mimetype text/plain
K 9bad909c6ed4691bcad1886d710a923791a524a2
U apnadkarni
Z 481495865d830696dcd5438479cca945