Re: run-program encoding

Helmut Eller <[email protected]>
Newsgroups gmane.lisp.cmucl.devel
Message-ID <[email protected]>
* 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.