Replace `setbinary' by a public `%default-port-encoding' fluid.
authorLudovic Courtès <ludo@gnu.org>
Sat, 14 Nov 2009 15:14:20 +0000 (16:14 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 14 Nov 2009 15:59:25 +0000 (16:59 +0100)
commitd6a6989e08a84cbf3c6b11c199536f665cbb6b50
treeb444cbd57da811480c67d02125c5ae1e69ddecd1
parentc2be4e891c8cc085c4eb3f68125c95d86fae856c
Replace `setbinary' by a public `%default-port-encoding' fluid.

* doc/ref/api-evaluation.texi (Character Encoding of Source Files): Add
  reference to the "Ports" node.

* doc/ref/api-io.texi (Ports): Document `%default-port-encoding'.

* libguile/ports.c (scm_port_encoding_var): Rename to...
  (default_port_encoding_var): ... this; update callers.  Make `static'.

* libguile/posix.c (scm_setbinary): Remove.

* libguile/posix.h: Adjust accordingly.

* test-suite/tests/numbers.test: Remove unneeded `setbinary' call.

* test-suite/tests/ports.test: Replace `setbinary' call by equivalent
  `%default-port-encoding' mutation and `set-port-encoding!' calls.

* test-suite/tests/r6rs-ports.test: Replace `setbinary' call by
  equivalent `%default-port-encoding' mutation.
doc/ref/api-evaluation.texi
doc/ref/api-io.texi
libguile/ports.c
libguile/posix.c
libguile/posix.h
test-suite/tests/numbers.test
test-suite/tests/ports.test
test-suite/tests/r6rs-ports.test