[Openmcl-devel] *default-character-encoding* should be :utf-8
Pascal J. Bourguignon
pjb at informatimago.com
Sat Mar 3 23:23:46 PST 2012
Gary Byers <gb at clozure.com> writes:
> On Sat, 3 Mar 2012, Vladimir Sedach wrote:
>> The fix is rather modest - l1-sysio.lisp, line 87 should be:
>> (defvar *default-file-character-encoding* :utf-8)
>
> Another way to fix this is to set *DEFAULT-FILE-CHARACTER-ENCODING*
> in your init file; that would have less impact on users for whom
> :UTF-8 isn't better.
On POSIX systems, I would like the defaults (*default-external-format*
*default-file-character-encoding* *default-socket-character-encoding*)
to be what is specified by the environment variables LC_ALL, or else
LC_CTYPE, or else LANG, or else LANGUAGE (the latest being a GNU
extension, I wonder why). See http://clisp.org/impnotes/clisp.html
(search: environment variables).
Clisp and SBCL take them into account (and also like ccl -K, clisp has
-E options to specify the encodings on the command line).
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
More information about the Openmcl-devel
mailing list