#18 current-input-port should be stdin

Patch (2)

There is confusion between inport and loadport.
The read-char, read... functions try to read from the currently loaded file rather than standard input.


  • Kevin Cozens

    Kevin Cozens - 2011-01-02

    I'm rejecting the first part of the patch which modifies opdefines.h as it would allow up to 2 arguments for open-input-file but the R5RS only shows 1 argument as valid. I need to take a closer look at the changes for the scheme.c file.

  • nimiezko

    nimiezko - 2011-02-20

    Patch is not meant to be applied. Just a workaround that worked for me.
    I have not sufficient skills to produce a better patch.

  • Kevin Cozens

    Kevin Cozens - 2013-03-25
    • labels: --> Patch
    Last edit: Kevin Cozens 2013-03-25
  • James Woodcock

    James Woodcock - 2013-07-09

    I think I have found a fix for this issue. I have attached a patch.

  • James Woodcock

    James Woodcock - 2013-07-09

    Here's a simple test case. inport_test.readme explains how it works.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks