<i>Eliminate "-encoding binary" in favour of "-translation binary"</i> status still Open with 3 other changes
by
.
D 2024-06-20T10:03:35.524
J icomment I\sagree\sthat\scurrent\ssituation\sis\sconfusing,\sand\slike\sHarald,\shave\sno\sclear\sopinion,\sjust\ssome\sthoughts.\r\n\r\nIf\swe\swere\sstarting\sfrom\sscratch,\sI\swould\shave\sliked\sto\sstick\sto\sthe\sprinciple\sthat\ssetting\sone\soption\sshould\snever\ssilently\schange\sanother\soption\sas\s-translation\sdoes\stoday.\sIf\syou\swant\sthe\slow\slevel\soptions\s(eof,\sencoding,\stranslation)\sthat\sare\srequired\sfor\sbinary\smode,\sset\sthem\svia\sfconfigure\syourself,\sor\suse\sthe\ssimple\s"open\sb"\smethod.\sHowever,\schanging\s-translation\sto\snot\smodify\seof\sand\sencoding\ssettings\swould\snow\sbe\stoo\sdisruptive,\sso\sthat's\snot\san\soption.\r\n\r\nThat\sleaves\sthe\squestion\sof\swhat\sto\sdo\sabout\s-encoding\sbinary.\sLeaving\sit\sin\sthe\scurrent\sstate\smeans\r\n\r\n-\s`fconfigure\s$chan\s-encoding`\sreturns\sa\sdifferent\svalue\s(iso8859-1)\sfrom\swhat\swas\sset\s(binary).\sThis\sgives\sme\sa\sbit\sof\sdiscomfort.\r\n-\sThis\sis\sa\s(small)\sincompatibility\swith\sTcl\s8.\r\n\r\nIf\schanged\sas\sJan\ssuggests,\s\r\n\r\n-\sIt\sis\sconsistent\sin\sthat\sthere\sis\sreally\sno\sencoding\scalled\s"binary"\sand\sthere\sis\sno\squestion\sof\sfconfigure\sreturning\sa\sdifferent\svalue\sthan\swas\sset.\r\n-\sThis\sis\salso\sincompatible\swith\sTcl\s8,\sthough\sin\sa\sdifferent,\sprobably\smore\scommon\sand\stherefore\sserious,\smanner\sthan\sabove.\r\n\r\nA\sthird\soption,\snot\snecessarily\sone\sI\sfavor,\sbut\sthrowing\sit\sout\sthere,\sis\sto\smake\s`-encoding\sbinary`\sa\ssynonym\sfor\s`-translation\sbinary`\sso\sit\swould\salso\schange\seof\sand\sline-ending\ssettings.\r\n\r\n-\sThis\sin\stheory\sis\sthe\smost\sincompatible\swith\s8.6\sbut\scould\sactually\smost\scompatible\sin\spractice.\sCode\sthat\sis\susing\sit\swill\slikely\sbe\salso\schanging\seof\sand\sline-endings\sand\sif\snot,\sshould\shave\sbeen\sdoing\sso\sand\sis\sprobably\sbroken\scode\sthat\swould\sbe\sfixed.\r\n\r\nThe\ssecond\soption\s(Jan's)\sseems\scleanest\sbut\smy\sgut\sfeel\sis\sthat\sthe\sfirst\sand\sthird\soptions\swill\scause\sthe\sfewest\scompatibility\sproblems.\sWith\sthe\ssecond\soption,\scorrect\scode\s"fconfigure\s$chan\s-encoding\sbinary\s-translation\slf\s-eofchar\s{}"\swill\snow\sfail.\r\n\r\nSo...mixed\sfeelings\sand\snot\svery\shelpful\scomments!\sIf\sI\swere\sreally\spushed,\sI\swould\skeep\sthings\sas\sthey\sare\s(with\sa\srelease\snote)\sbut\sonly\sbecause\sat\sthis\sparticular\smoment\sI\slean\stowards\scompatibility\sover\scleanliness\s:-)
J login apnadkarni
J mimetype text/x-markdown
K 8cae59ecb03a6269468379a1e028c01f604ce5de
U apnadkarni
Z 5d8512fa9945531ec749a6647dbe9e2f