diff options
| author | Kenichi Handa | 2009-08-27 11:13:33 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-08-27 11:13:33 +0000 |
| commit | 550c8289fd72b5bff091ce1c2f9c6567215a8994 (patch) | |
| tree | b02510e21e583621d38d58b5411a06be6b6c760f /src/process.c | |
| parent | 60afa08d413e55222b84757d1ba62755f1596131 (diff) | |
| download | emacs-550c8289fd72b5bff091ce1c2f9c6567215a8994.tar.gz emacs-550c8289fd72b5bff091ce1c2f9c6567215a8994.zip | |
(send_process): Use encode_coding_object instead of
encode_coding_string to perform eol-conversion even if the string
is unibyte.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 86cc5b0c4b4..77ca2551e46 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5721,7 +5721,8 @@ send_process (proc, buf, len, object) | |||
| 5721 | } | 5721 | } |
| 5722 | else if (STRINGP (object)) | 5722 | else if (STRINGP (object)) |
| 5723 | { | 5723 | { |
| 5724 | encode_coding_string (coding, object, 1); | 5724 | encode_coding_object (coding, object, 0, 0, SCHARS (object), |
| 5725 | SBYTES (object), Qt); | ||
| 5725 | } | 5726 | } |
| 5726 | else | 5727 | else |
| 5727 | { | 5728 | { |