From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3E5A39C5.7000402@strakt.com> From: Boyd Roberts User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 MIME-Version: 1.0 To: 9fans@cse.psu.edu Subject: Re: [9fans] libbio and CR-LF References: <2c43986586d52f0b4b3b1878469ddbcb@plan9.bell-labs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 24 Feb 2003 16:27:01 +0100 Topicbox-Message-UUID: 7061ad3e-eacb-11e9-9e20-41e7f4b1d025 Russ Cox wrote: > If the CR is there it should be reported. > Libbio should not do any funny conversions In the general case the problem is intractable so no special treatment should be done. Should you decide to do it then all the tools (that use it) will have to be told what sort of 'file' it is. Obviously, this is a bad idea. I built such functionality into a 'line' based i/o library when it was faced with talking POP. In this case the application _knew_ it was going to be talking POP and so it had sufficient context to make the right decision.