Ticket #1839 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

"stdin.'read'(n)" returns only null characters

Reported by: rgrjr Owned by: nwellnhof
Priority: normal Milestone: 2.10
Component: none Version: 2.10.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

The attached test script demonstrates the problem. (Runs on GNU/Linux; no guarantees that it runs elsewhere.) Note that you must disable the assertions in the vicinity of src/gc/string_gc.c:442 in order to see this failure; see TT#1835 for details.

Attachments

stdin-io.t Download (2.5 KB) - added by rgrjr 4 years ago.
Test script for reading from stdin

Change History

Changed 4 years ago by rgrjr

Test script for reading from stdin

Changed 4 years ago by nwellnhof

  • owner set to nwellnhof

Can you give r49646 a try? It seems that small unbuffered reads have been broken for quite a while.

Changed 4 years ago by nwellnhof

  • status changed from new to assigned

And I added your test file to the Parrot test suite.

Changed 4 years ago by rgrjr

Works like a charm; thank you.

Changed 4 years ago by nwellnhof

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.