This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: none
- To: Valentin Kamyshenko <val at kamysh dot materials dot kiev dot ua>
- Subject: Re: none
- From: Jim Blandy <jimb at red-bean dot com>
- Date: 21 Mar 2000 14:09:25 -0500
- CC: guile at sourceware dot cygnus dot com
- References: <200003211428.IAA13689@sanpietro.red-bean.com>
> Hello,
>
> is it supposed, that
>
> (display "Hello, world!"
> (open-output-pipe "mimencode"))
>
> should write `SGVsbG8uIHdvcmxkIQ==' to the `current-output-port'?
>
> It does not.
>
> It seems, it writes to the "stdout", but I do not understand, how to
> get these data back to guile (in interactive mode, I see the output
> only after finishing guile session).
>
> I would be very appreciated for any help.
It's a buffering issue. If you close the port, or apply force-output
to it, then mimencode will recieve the data.
Of course, mimencode isn't obliged to actually write anything at all
to its stdout until it sees EOF, so in general, you'll need to close
the port before you get any results.