Choose the input source file encoding in a locale-independent way.
authorLudovic Courtès <ludo@gnu.org>
Mon, 24 Jan 2011 20:44:44 +0000 (21:44 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 24 Jan 2011 20:44:44 +0000 (21:44 +0100)
commiteda06220952cc93e35711ede68ec800144aaf288
tree86f4342aa4ae248bae91a389ba4d0bc193973076
parentbc03d89fa20f3a84743be87a6ad8fb5b08701c93
Choose the input source file encoding in a locale-independent way.

This is so that compiling the same code on environments with different
locale settings yields the same result.

* module/system/base/compile.scm (compile-file): When ENC if #f, default
  to "UTF-8" instead of `(fluid-ref %default-port-encoding)'.

* doc/ref/api-evaluation.texi (Compilation): Document the default output
  file name and default source file encoding for `compile-file' and
  `guile-tools compile'.
doc/ref/api-evaluation.texi
module/system/base/compile.scm