Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 104637:fcd96c296cb4 | 104638:fec993ec6e85 |
|---|---|
| 5719 TEMP_SET_PT_BOTH (save_pt, save_pt_byte); | 5719 TEMP_SET_PT_BOTH (save_pt, save_pt_byte); |
| 5720 set_buffer_internal (cur); | 5720 set_buffer_internal (cur); |
| 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 { |
| 5728 coding->dst_object = make_unibyte_string (buf, len); | 5729 coding->dst_object = make_unibyte_string (buf, len); |
| 5729 coding->produced = len; | 5730 coding->produced = len; |
