Fix (rnrs io simple) to open file ports in textual mode.
authorMark H Weaver <mhw@netris.org>
Thu, 20 Mar 2014 03:36:46 +0000 (23:36 -0400)
committerMark H Weaver <mhw@netris.org>
Thu, 20 Mar 2014 03:36:46 +0000 (23:36 -0400)
commit5dcbcfcef8eefd1f9e57d8ba69efe1ca945c95b1
tree0c8ee97a95c27359226e2265272673c316d41249
parente26ab067b2073c1eb5ace13d069674515b9f97c6
Fix (rnrs io simple) to open file ports in textual mode.

Fixes <http://bugs.gnu.org/17044>.
Reported and diagnosed by Xin Wang <dram.wang@gmail.com>.

* module/rnrs/io/simple.scm (open-input-file, open-output-file): Pass
  missing buffer-mode argument to open-file-{input,output}-port.
  Previously, (native-transcoder) was incorrectly passed as the
  buffer-mode argument, so no transcoder was provided, thus creating a
  binary port.
module/rnrs/io/simple.scm