This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: a simple problem


| 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]