Enhance transcoder-related functionality of `(rnrs io ports)'
authorAndreas Rottmann <a.rottmann@gmx.at>
Sun, 13 Mar 2011 22:14:10 +0000 (23:14 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 13 Mar 2011 22:14:43 +0000 (23:14 +0100)
commitead04a04cd38909d0d40f1ba7885372c9c65ff38
treefb5e4f162ae4e5a6ce72e156972ac6c30040afbc
parent74571cfd3b27b79567f27fc43815d08ec1f402cc
Enhance transcoder-related functionality of `(rnrs io ports)'

* module/rnrs/io/ports.scm (transcoder-eol-style)
  (transcoder-error-handling-mode): Export these.
  (textual-port?): Implement this procedure and export it.
* module/rnrs.scm: Export these here as well.

* module/rnrs/io/ports.scm (port-transcoder): Implement this procedure.
  (binary-port?): Treat only ports without an encoding as binary ports,
  add docstring.
  (standard-input-port, standard-output-port, standard-error-port):
  Ensure these are created without an encoding.
  (eol-style): Add `none' as enumeration member.
  (native-eol-style): Switch to `none' from `lf'.

* test-suite/tests/r6rs-ports.test (7.2.7 Input ports)
  (8.2.10 Output ports): Test binary-ness of `standard-input-port',
  `standard-output-port' and `standard-error-port'.
  (8.2.6 Input and output ports): Add test for `port-transcoder'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
module/rnrs.scm
module/rnrs/io/ports.scm
test-suite/tests/r6rs-ports.test