#352 "address system ... with input stem" does not really work

closed
5
2012-10-16
2011-08-30
Achim Lauer
No

With Regina 3.5 under Win XP and Win 7, the instruction (recommended similarly in the Regina Manual 3.3):
address SYSTEM 'Sort' with input stem fdata. output stem fdatb.
always fails if a total of 8 K bytes or more are to be sorted.

Testing has confirmed that (a) the output option of "address" is irrelevant, (b) the same bug occurs with "with input stream (fileid)",
(c) the bug does not appear if input re-direction is not used, e.g. if the stem variable fdata. is first written to a file (variable fin) and
the above instruction is replaced by:
address SYSTEM 'Sort' fin with output stem fdata.
The attached REXX program "IO-Test_SORT.rex" can be used to demonstrate all this.

Discussion

  • Achim Lauer

    Achim Lauer - 2011-08-31

    Test prog to demonstrate I/O re-direction bugs with address SYSTEM 'Sort'

     
  • Achim Lauer

    Achim Lauer - 2011-09-06
    • priority: 5 --> 6
     
  • Achim Lauer

    Achim Lauer - 2012-09-28
    • priority: 6 --> 5
    • summary: address system ... with input stem ... fails --> "address system ... with input stem" does not really work
     
  • Mark Hessling

    Mark Hessling - 2012-10-14
    • status: open --> pending
     
  • Mark Hessling

    Mark Hessling - 2012-10-14

    There is a bug in the Windows handling of stdin and stdout which uses overlapped I/O features of Windows NT and later. I've made a workaround in the code to use temporary files for handling stdin/stdout which is how the DOS (including Windows 9x) ports work. This is slower than overlapped I/O, but it works.

     
  • Mark Hessling

    Mark Hessling - 2012-10-16
    • status: pending --> closed
     

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