mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
* module/rnrs/io/ports.scm (open-file-output-port): Handle `no-fail' file option. (with-i/o-filename-conditions): Use `with-throw-handler' instead of `catch'. (with-i/o-port-error, with-textual-output-conditions. with-textual-input-conditions): New exception-conversion helpers. (put-char, put-datum, put-string, display): Use `with-textual-output-conditions' instead of `with-i/o-encoding-error' to get proper conditions in case of write errors. (get-char, get-datum, get-line, get-string-all, lookahead-char): Likewise, for the input case. * test-suite/tests/r6rs-ports.test (pass-if-condition, test-file, make-failing-port): New helpers. ("8.2.10 Output ports"): Add some tests for `open-file-output-port'. ("8.2.9 Textual Input"): Add tests read error conditions. ("8.2.12 Textual Output"): Add tests for write error conditions. ("8.3 Simple I/O"): Add tests for conditions, `call-with-input-file' and `call-with-output-file'. |
||
---|---|---|
.. | ||
arithmetic | ||
io | ||
records | ||
base.scm | ||
bytevectors.scm | ||
conditions.scm | ||
control.scm | ||
enums.scm | ||
eval.scm | ||
exceptions.scm | ||
files.scm | ||
hashtables.scm | ||
lists.scm | ||
mutable-pairs.scm | ||
mutable-strings.scm | ||
programs.scm | ||
r5rs.scm | ||
sorting.scm | ||
syntax-case.scm | ||
unicode.scm |