diff src/process.c @ 104638:fec993ec6e85

(send_process): Use encode_coding_object instead of encode_coding_string to perform eol-conversion even if the string is unibyte.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Aug 2009 11:12:54 +0000
parents bb8ce3c842e7
children 1eb83f01c48d
line wrap: on
line diff
--- a/src/process.c	Thu Aug 27 07:30:51 2009 +0000
+++ b/src/process.c	Thu Aug 27 11:12:54 2009 +0000
@@ -5721,7 +5721,8 @@
 	}
       else if (STRINGP (object))
 	{
-	  encode_coding_string (coding, object, 1);
+	  encode_coding_object (coding, object, 0, 0, SCHARS (object),
+				SBYTES (object), Qt);
 	}
       else
 	{