Menu

#1520 lines() and chars() return incorrect result after partial read to stdin.

5.0.0
closed
nobody
None
none
1
2023-01-01
2018-01-20
No

Tested on latest 5.0.0 build. With this small program,

say "Enter data"
call syssleep 15
say "Lines() is" lines() "Chars() is" chars()

say charin()
say "Lines() is" lines() "Chars() is" chars()
say linein()
say "Lines() is" lines() "Chars() is" chars()

After the first charin() call, both lines() and chars() are reporting 0, but the remainder of the entered line is still available as shown by the subsequent linein() call.

Discussion

  • Rick McGuire

    Rick McGuire - 2018-01-20

    This patch is working on Windows, but I'm unable to test the *ix version. It probably also needs a full run of the i/o refression tests.

     
  • Erich

    Erich - 2018-01-20
    • status: open --> pending
    • Group: None --> 5.0.0
     
  • Erich

    Erich - 2018-01-20

    Tested on Linux, ran full regression tests on Windows and Linux.
    Fixed code with revision [r11347]

     

    Related

    Commit: [r11347]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel