mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 2 The xml parser wasn't working, because all the files read using io__read_file_as_string/4 were empty. It turns out this is a due to a bug in the library. library/io.m: Fix a bug that petdr introduced when changing the file stream structures. Make sure we use the return value of fread (or whatever is used to read the file) when reading into a buffer. tests/general/Mmakefile: tests/general/io_regression.exp: tests/general/io_regression.inp: tests/general/io_regression.m: Add a test case for this problem to the test suite.
4 lines
69 B
Plaintext
4 lines
69 B
Plaintext
|
|
This is a test of the reading files using io__read_file_as_string.
|
|
|