This is the mail archive of the
mailing list for the Guile project.
Re: a simple problem
- To: firstname.lastname@example.org
- Subject: Re: a simple problem
- From: Gary Houston <email@example.com>
- Date: 18 Aug 1999 20:08:52 -0000
- CC: firstname.lastname@example.org
- References: <email@example.com>
| This is probably a frequent problem, so I apologize in advance.
| I wrote a small program (guile 1.3) to illustrate my problem. I'm
| trying to copy from one port to another. I'd hoped to use
| read-line/write-line to do so, but it appears that for binary data
| there's a problem. However, I thought the 'split option to read-line
| could help me work around it.
| Interestingly enough, the split flag leads me to copy the correct
| number of bytes, but the data is different than I expect. Am I
| completely misunderstanding the usage of the split flag and the
| difference between display and write-line?
I think this would have been caused by a bug in 1.3 where signed chars
and ints were incorrectly converted. The CVS sources had a different
and unrelated bug: I've applied a fix.