Closed PNieck closed 1 year ago
@PNieck please provide more info about target on which you've observed the problem. From my side I use recent phoenix-rtos-project (https://github.com/phoenix-rtos/phoenix-rtos-project/commit/2dc876fed07118389c3ed506a1578ec68834af33) and it worksfine, for the example you provided, both results the same:
on host:
Ia 32-generic:
@gerard5 Try without new line character after lorem
I confirm. I'll provide the fix in the pull-request.
@PNieck I added a quick-fix PR for that, please check if this solves the issue before merging.
@gerard5 I have checked this PR and it seams to work
Example
Suppose that we have such a file without new line character at the end of last line:
Then such a program:
Gives such an output, which is different than file content: