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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/process.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7eb5f5b3efb..12f3185a3ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2009-08-27 Kenichi Handa <handa@m17n.org> | 1 | 2009-08-27 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * process.c (send_process): Use encode_coding_object instead of | ||
| 4 | encode_coding_string to perform eol-conversion even if the string | ||
| 5 | is unibyte. | ||
| 6 | |||
| 3 | * coding.c (encode_coding_utf_16): Fix checking of a Unicode | 7 | * coding.c (encode_coding_utf_16): Fix checking of a Unicode |
| 4 | character. | 8 | character. |
| 5 | 9 | ||
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 | { |