Commit f8fdb5e
fix: warn Filehandle opened only for input for print/say to read-only fh (#439)
When printing to a filehandle opened for reading only, the builtin
print and say now set errno to Bad file descriptor, emit the warning
(when warnings enabled via io category), and return undef.
This was the last remaining Text::CSV failure: t/70_rt.t test 72.
All 40 Text::CSV test files now pass (52723/52723 subtests).
Generated with [Devin](https://cli.devin.ai/docs)
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent a7261e4 commit f8fdb5e
File tree
2 files changed
+17
-1
lines changed- src/main/java/org/perlonjava
- core
- runtime/operators
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
737 | 745 | | |
738 | 746 | | |
739 | 747 | | |
| |||
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
782 | 798 | | |
783 | 799 | | |
784 | 800 | | |
| |||
0 commit comments