.
D 2000-10-26T00:57:09
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5296\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-04-28'\nLastModified:\s'2000-05-08'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSolaris\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-05-08'\n\n\nName:\nDonal\sFellows\n\nComments:\nThe\sonly\suser-level\swork-around\sis\sto\smanipulate\sthe\sdata\sat\sthe\sC\n\s\s\s\slevel,\swhich\sstinks\sbig-time.\n\nReproducibleScript:\nset\sf\s[open\s[info\snameofexecutable]\sr]\s;#\sCould\sbe\sany\sfile\nputs\s[fconfigure\s$f\s-translation]\nfconfigure\s$f\s-translation\sbinary\s-encoding\sbinary\nputs\s[fconfigure\s$f\s-translation]\nclose\s$f\n\nObservedBehavior:\nThe\sabove\sscript\soutputs\sthe\sfollowing:\n\s\sauto\n\s\slf\nThus,\sputting\sthe\schannel\sinto\sbinary\smode\shas\sin\sfact\smade\sit\sswitch\sinto\schanging\sall\sCRLF\ssequences\sin\sthe\sdata\sinto\ssingle\sLFs.\s\sThis\sis\sa\sgreat\sway\sto\scorrupt\sdata\sbeing\sread\sfrom\sa\sbinary\sfile\s(I\sfound\sthis\swhen\strying\sto\swrite\sa\sPNG\sfile\sreader)\sand\sis\s_utterly_\swrong...\n\nDesiredBehavior:\nIt\sshould\soutput:\n\s\sauto\n\s\sbinary\nAnd\shaving\sset\sthe\sencoding\sand\stranslation\sto\sbinary\sfor\sa\schannel,\sI\sshould\sjust\sget\sthe\sbytes\sthat\sare\sbeing\spassed\salong\sthat\schannel.\n\n\n\nThis\sis\sactually\scorrect,\salthough\sconfusing.\s\sThe\spoint\sof\ntranslation\sis\sthat\sit\stells\sus\swhat\swe\sare\sconverting\sexternally\ninto\sthe\sinternal\slinefeed\schar\s(which\sis\sLF).\s\sWith\s-binary,\nthis\smeans\sonly\slf\s==\sLF,\swhich\sis\sthe\scorrect\snoop\sto\sgive\sus\nbinary\stranslation.\s\n--\s05/08/2000\shobbs
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 62.\s(unused)
J title -translation\sbinary\smisinterpreted\sas\s-transation\slf
J type Bug
K 218403ffffffffffffffffffffffffffffffffff
U nobody
Z 883008ce85d58fcc92bb1e93afc03f10