This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: a simple problem
- To: knotwell@f5.com
- Subject: Re: a simple problem
- From: Gary Houston <ghouston@easynet.co.uk>
- Date: 18 Aug 1999 20:08:52 -0000
- CC: guile@sourceware.cygnus.com
- References: <14264.41922.983211.710858@knotwell.f5.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.