Do not scan for coding declarations in open-file.
authorMark H Weaver <mhw@netris.org>
Wed, 30 Jan 2013 19:45:28 +0000 (14:45 -0500)
committerMark H Weaver <mhw@netris.org>
Sun, 7 Apr 2013 14:11:41 +0000 (10:11 -0400)
commit9a334eb3ab6bbb250d9c0f559b82d1c97f5eb21a
tree3a1e9076fdde272656c67e70303c08ed4dd95a5c
parentbc3901092dc777d832862862e606ae2ddeb6f2f8
Do not scan for coding declarations in open-file.

* libguile/fports.c (scm_open_file): Do not scan for coding
  declarations.  Replace 'use_encoding' local variable with
  'binary'.  Update documentation string.

* module/ice-9/psyntax.scm (include): Add the same file-encoding
  logic that's used in compile-file and scm_primitive_load.

* module/ice-9/psyntax-pp.scm: Regenerate.

* doc/ref/api-io.texi (File Ports): Update docs.

* test-suite/tests/ports.test: Change "open-file HONORS file coding
  declarations" test to "open-file IGNORES file coding declaration".

* test-suite/tests/coding.test (scan-coding): Use 'file-encoding' to
  scan for the encoding, since 'open-input-file' no longer does so.
doc/ref/api-io.texi
libguile/fports.c
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm
test-suite/tests/coding.test
test-suite/tests/ports.test