mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
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>
This commit is contained in:
parent
74571cfd3b
commit
ead04a04cd
3 changed files with 66 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue