[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs 20.3 patch
This patch, by courtesy of Ken'ichi HANDA <handa@etl.go.jp>, should
(together with nnimap 0.87) make Emacs 20.3 handle eight bit
characters better.
I've not yet verified this, all christmas food is making me even more
lazy than usual.
* process.c (read_process_output): Decide the multibyteness of
string given to a process filter by a coding system used for
decoding the process output.
Index: process.c
===================================================================
RCS file: /usr/local/mulework/cvsroot/emacs-20.4.pre/src/process.c,v
retrieving revision 1.2
diff -c -c -r1.2 process.c
*** process.c 1998/12/11 01:42:14 1.2
--- process.c 1998/12/21 12:50:36
***************
*** 2994,3000 ****
save the match data in a special nonrecursive fashion. */
running_asynch_code = 1;
! text = make_string_from_bytes (chars, nchars, nbytes);
internal_condition_case_1 (read_process_output_call,
Fcons (outstream,
Fcons (proc, Fcons (text, Qnil))),
--- 2994,3007 ----
save the match data in a special nonrecursive fashion. */
running_asynch_code = 1;
! /* The multibyteness of a string given to the filter is decided
! by which coding system we used for decoding. */
! if (coding->type == coding_type_no_conversion
! || coding->type == coding_type_raw_text)
! text = make_unibyte_string (chars, nbytes);
! else
! text = make_multibyte_string (chars, nchars, nbytes);
!
internal_condition_case_1 (read_process_output_call,
Fcons (outstream,
Fcons (proc, Fcons (text, Qnil))),