From: Kenichi Handa Date: Mon, 8 May 2006 07:56:14 +0000 (+0000) Subject: (Fcall_process): Use system_eol_type for encoding X-Git-Tag: emacs-pretest-22.0.90~2681 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76a25e793682c3c59084c99b5577443bbd786a41;p=emacs.git (Fcall_process): Use system_eol_type for encoding arguments if eol_type is not yet decided. --- diff --git a/src/ChangeLog b/src/ChangeLog index 91b9594efa8..9ae27eadf12 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,26 @@ +2006-05-08 Kenichi Handa + + * callproc.c (Fcall_process): Use system_eol_type for encoding + arguments if eol_type is not yet decided. + + * coding.h (system_eol_type): Extern it. + + * coding.c (setup_coding_system): For invalid coding-system, set + coding->eol_type to CODING_EOL_UNDECIDED. + (encode_coding): Cancel previous change. + (shrink_encoding_region): Likewise. + (code_convert_region1): Likewise. + (code_convert_string1): Likewise. + (code_convert_string_norecord): Likewise. + + * fileio.c (choose_write_coding_system): Use system_eol_type for + encoding if eol_type is not yet decided. + + * process.c (setup_process_coding_systems): Use system_eol_type + for encoding if eol_type is not yet decided. + (read_process_output): Likewise. + (send_process): Likewise. + 2006-05-07 Juanma Barranquero * minibuf.c (syms_of_minibuf) : Fix typo in doc. diff --git a/src/callproc.c b/src/callproc.c index 9f90e9d7537..8cf261c646f 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -295,6 +295,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) val = Qnil; } setup_coding_system (Fcheck_coding_system (val), &argument_coding); + if (argument_coding.eol_type == CODING_EOL_UNDECIDED) + argument_coding.eol_type = system_eol_type; } }