Subject: [clisp-list] Default encoding problem

From: "Hoehle, Joerg-Cyril" <[email-masked]>
Date: Tue Jan 21 08:43:06 2003

Nick Wright asked:
>#+unicode (setf custom:*default-file-encoding*
>                 (ext:make-encoding :charset "ISO-8859-1" 
>:line-terminator :unix))
>
>What is the equivalent *default-whatever-encodint* that corresponds to 
>the standard output?

More precisely, there's no encoding which corresponds to *standard-output* per se, as it depends on the nature of the descriptor that stdout refers to.

*default-file-encoding* would apply to what's bound to *standard-output* if CLISP's output were redirected to a file.

Try
lisp.exe -B . -M lispinit.mem -x "(describe *standard-output*)" > test.txt
type test.txt
lisp.exe -B . -M lispinit.mem -x "(describe *standard-output*)"

You may get either
#<IO SYNONYM-STREAM *TERMINAL-IO*> is an input/output-stream.
#<OUTPUT BUFFERED FILE-STREAM CHARACTER @1> is an output-stream.

Regards,
	Jorg Hohle.