diff options
author | Andreas Rottmann <a.rottmann@gmx.at> | 2011-03-13 23:14:10 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-03-13 23:14:43 +0100 |
commit | ead04a04cd38909d0d40f1ba7885372c9c65ff38 (patch) | |
tree | fb5e4f162ae4e5a6ce72e156972ac6c30040afbc /module/rnrs.scm | |
parent | 74571cfd3b27b79567f27fc43815d08ec1f402cc (diff) | |
download | guile-ead04a04cd38909d0d40f1ba7885372c9c65ff38.tar.gz |
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>
Diffstat (limited to 'module/rnrs.scm')
-rw-r--r-- | module/rnrs.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/rnrs.scm b/module/rnrs.scm index 77090d0e1..9fff820b3 100644 --- a/module/rnrs.scm +++ b/module/rnrs.scm @@ -162,12 +162,14 @@ file-options buffer-mode buffer-mode? eol-style native-eol-style error-handling-mode - make-transcoder transcoder-codec native-transcoder + make-transcoder transcoder-codec transcoder-eol-style + transcoder-error-handling-mode native-transcoder latin-1-codec utf-8-codec utf-16-codec eof-object? port? input-port? output-port? eof-object port-eof? port-transcoder - binary-port? transcoded-port port-position set-port-position! + binary-port? textual-port? transcoded-port + port-position set-port-position! port-has-port-position? port-has-set-port-position!? close-port call-with-port open-bytevector-input-port make-custom-binary-input-port get-u8 |