changeset 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 fcd96c296cb4
children a20bd369fcb6
files src/process.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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
 	{