[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: How to specify coding-system of process parmeters?



horiguti@xxxxxxxxxxxxx (Kyotaro HORIGUCHI) writes:
>    start-process でプロセスの起動パラメータの漢字コードを指定する
>   にはどうしたらいいのでしょうか.  process-coding-system-alist で
>   は call-process のパラメータの文字コードは変わりますが,
>   start-process のは変わっていないようです.

とりあえず今のソースを見る限り、start-process の方では引数の
encode はしていないようなので、「とりあえずは無理」と思います。

>   また, これと関係があるか分かりませんが, *-coding-system-alist 
>   の実際の影響を見ようと, find-operation-coding-system を実行して

>   (find-operation-coding-system 'start-process "imls")
>   > Too few arguments for operation: start-process

その関数の説明をもう少し先まで読むと

The remaining arguments should be the same arguments that were passed
to the primitive.  Depending on which primitive, one of those arguments
is selected as the TARGET.  For example, if OPERATION does file I/O,
whichever argument specifies the file name is TARGET.

てなことが書いてありますですよ。ですから、例えば、

  (find-operation-coding-system 'start-process "imls" "hoge" "imls")

でいかがでせうか。
-- 
	Keisuke Mori / NTT Software Corp. California Branch
	E-Mail: ksk@xxxxxxxx