From xemacs-m  Tue Feb 11 08:07:59 1997
Received: from mikan.jaist.ac.jp (mikan-e0.jaist.ac.jp [150.65.1.9])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA21417
	for <xemacs-beta@xemacs.org>; Tue, 11 Feb 1997 08:07:57 -0600 (CST)
Received: from is18e0s01.jaist.ac.jp (MORIOKA Tomohiko <morioka@jaist.ac.jp>) by mikan.jaist.ac.jp (8.7.5); id XAA23154; Tue, 11 Feb 1997 23:07:54 +0900 (JST)
Message-Id: <199702111407.XAA23154@mikan.jaist.ac.jp>
X-MUA: mh-e 5.0.2 + tm-mh-e 7.73, tm-view 7.81
X-Face: %yc?f+O/cVKlH*K(H2X/6-d''suf|"1{S:Y0}_9$t@0G3:5M2:-Ck^[8+4^iSLeGc[Ey[WP
 PF]2M#Q9C'u~[=7TJP72J`PZdWvP=s-'-/LhFneC->=ILc~H#$lf2%hLL5U8?psIp`<[>d&@$Pm%~(
 A'"CJ.zuX@TXh\Ra4,b7M&`f"hexU-a4,#X\]Bfp'JI+MGUDRA%_$&UnWAem4}1R"4%uivgn;xFZ%"
 NS>)eCuFYNHc/:W^:{7H>bGQS],x5z[Cy~C;7j#:8y9q|"~9~UWjE<Vm_;)o<Q4S5NweLc(cl7-suY
 NF|_O*xodbmQavM
X-Emacs: Emacs 19.34.91, Mule 3.0 =?ISO-2022-JP?B?KBskQjlITVUybBsoQik=?=
From: =?ISO-2022-JP?B?GyRCPGkyLBsoQiAbJEJDTkknGyhC?= / MORIOKA Tomohiko <morioka@jaist.ac.jp>
To: xemacs-beta@xemacs.org
Subject: coding-system about process and images.el
Mime-Version: 1.0 (generated by tm-edit 7.104)
Content-Type: multipart/signed; protocol="application/pgp-signature";
 boundary="pgp-sign-Multipart_Tue_Feb_11_23:07:50_1997-1"; micalg=pgp-md5
Content-Transfer-Encoding: 7bit
Date: Tue, 11 Feb 1997 23:08:03 JST
Sender: morioka@jaist.ac.jp

--pgp-sign-Multipart_Tue_Feb_11_23:07:50_1997-1
Content-Type: multipart/mixed;
 boundary="Multipart_Tue_Feb_11_23:07:50_1997-1"
Content-Transfer-Encoding: 7bit

--Multipart_Tue_Feb_11_23:07:50_1997-1
Content-Type: text/plain; charset=US-ASCII

  I was trying to use images.el however it does not work fine in
XEmacs/mule.

  I guessed it is caused by process coding-system, because it does not
have code to guard from process code conversion.

  However I found surprising fact.  It is caused by
file-coding-system!!!  Coding-system features of XEmacs/mule
*completely* does not work and call-process-region uses write-region
without guard from code conversion.

  Following is a patch for images.el:


--Multipart_Tue_Feb_11_23:07:50_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="images.el.diff"
Content-Transfer-Encoding: 7bit

--- images.el~	Thu Jan 23 14:29:49 1997
+++ images.el	Mon Feb 10 17:27:50 1997
@@ -146,12 +146,14 @@
 	      (while chain
 		(cond
 		 ((stringp (car chain))
-		  (shell-command-on-region (point-min) (point-max)
-					   (concat
-					    "/bin/sh -c '"
-					    (car chain)
-					    " 2> /dev/null"
-					    "'") t))
+		  (let ((file-coding-system 'no-conversion))
+		    (shell-command-on-region (point-min) (point-max)
+					     (concat
+					      "/bin/sh -c '"
+					      (car chain)
+					      " 2> /dev/null"
+					      "'") t)
+		    ))
 		 ((and (symbolp (car chain)) (fboundp (car chain)))
 		  (funcall (car chain) (point-min) (point-max))))
 		(setq chain (cdr chain)))

--Multipart_Tue_Feb_11_23:07:50_1997-1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


;; "file-coding-system" is not good naming, because it is effective
;; for process(^_^;;;  Maybe it should be renamed to
;; `coding-system-for-write' like Emacs/mule.  However it seems
;; difficult to repair a lot of bugs in XEmacs/mule.

-- 
----------------------------------------------------------------------
MORIOKA Tomohiko <morioka@jaist.ac.jp>
        Japan advanced Institute of Science and Technology, Hokuriku
                Asahi-dai, Tatsu-no-kuchi ch=F4, Nomi, Ishikawa, Japan
------------------------------------------ Frisch, Frei, Fr=F6hlich! ---

--Multipart_Tue_Feb_11_23:07:50_1997-1--

--pgp-sign-Multipart_Tue_Feb_11_23:07:50_1997-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP MESSAGE-----
Version: 2.6.3ia
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMwB9PRnuUGV7wuH5AQE0FwP/QbM5nXs2lJBJtON3VwUJ+arpl5VG4GhT
vi+gANf+Jnmmwd0fteySYuK/0PsI3zlcZ10ubEOk/iEy+7IWREqrftI7rgEwtzic
SMZpCP1+Fy5lphIArPd3aVCEId2LB9sRKz/TILvmEFjJTh9QlwsWx9rI29S5D0dj
m1NhDVl/hSA=
=tEWW
-----END PGP MESSAGE-----

--pgp-sign-Multipart_Tue_Feb_11_23:07:50_1997-1--

