]> git.eshelyaron.com Git - emacs.git/commit
read_process_output_set_last_coding_system: Extract, reuse
authorDmitry Gutov <dmitry@gutov.dev>
Tue, 11 Jun 2024 02:36:51 +0000 (05:36 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Jun 2024 09:27:52 +0000 (11:27 +0200)
commitcabe49e232c098be3e44a00465ec0088f163aba9
treeb2639e9cd2b49da5913084651d68b3d02b32b23c
parent4d89a759263cb278ecf19031625408100a56aa43
read_process_output_set_last_coding_system: Extract, reuse

* src/process.c (read_process_output_set_last_coding_system):
New function, extracted from read_and_dispose_of_process_output.
(read_and_dispose_of_process_output): Update accordingly.
(read_and_insert_process_output): Use it here instead of just
transferring carryover (bug#66020, also mentioned in bug#71452).

(cherry picked from commit d9890bb87063b402853ff0e4ea8bbfc92e5d6e00)
src/process.c