]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process): Use encode_coding_object instead of
authorKenichi Handa <handa@m17n.org>
Thu, 27 Aug 2009 11:13:33 +0000 (11:13 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 27 Aug 2009 11:13:33 +0000 (11:13 +0000)
encode_coding_string to perform eol-conversion even if the string
is unibyte.

src/ChangeLog
src/process.c

index 7eb5f5b3efba67832a5ebe2d91b2ca94d0a585d4..12f3185a3ed633d5c00838f47cc424561e0907d8 100644 (file)
@@ -1,5 +1,9 @@
 2009-08-27  Kenichi Handa  <handa@m17n.org>
 
+       * process.c (send_process): Use encode_coding_object instead of
+       encode_coding_string to perform eol-conversion even if the string
+       is unibyte.
+
        * coding.c (encode_coding_utf_16): Fix checking of a Unicode
        character.
 
index 86cc5b0c4b473d61b0fc67989f41899c67625215..77ca2551e46b6259b299be603ac0775c55943424 100644 (file)
@@ -5721,7 +5721,8 @@ send_process (proc, buf, len, object)
        }
       else if (STRINGP (object))
        {
-         encode_coding_string (coding, object, 1);
+         encode_coding_object (coding, object, 0, 0, SCHARS (object),
+                               SBYTES (object), Qt);
        }
       else
        {