run-program encoding

Helmut Eller heller at common-lisp.net
Mon Jul 5 15:48:28 CEST 2010


* Raymond Toy [2010-07-05 13:33] writes:

> On 7/5/10 9:01 AM, Helmut Eller wrote:
>> Is it possible to use utf-8 when RUN-PROGRAM is called like
>>
>> (run-program ... () :input :stream :output :stream :error :output :wait nil)
>>
>> ?
>>   
> I think so.  You will need to bind *default-external-format* to :utf-8
> to get the input and output streams created with an external format of
> :utf8.
>
> I did a quick test with the following and it seems to work.

Thanks. 

(setf (stream-external-format (process-output <process>)) :utf-8)

also seems to work.

Helmut




More information about the cmucl-imp mailing list