[cmucl-imp] Re: run-program encoding

Raymond Toy toy.raymond at gmail.com
Mon Jul 5 16:29:35 CEST 2010


On 7/5/10 9:48 AM, Helmut Eller wrote:
> * 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.
>
>   
Yes, that works too.  Forgot about that.

Ray




More information about the cmucl-imp mailing list