[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Process output truncation when using UTF-8
From: |
Kenichi Handa |
Subject: |
Re: Process output truncation when using UTF-8 |
Date: |
Wed, 4 Jun 2003 21:48:25 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <87el2bi4uy.fsf@zamazal.org>, Milan Zamazal <pdm@zamazal.org> writes:
> Thank you. The case I've reported works well in Emacs 21.3, but this
> one still truncates the output:
[...]
> The difference is that the process encoding is set to utf-8-dos now
> instead of utf-8.
Thank you for testing it. Please try this additional patch.
---
Ken'ichi HANDA
handa@m17n.org
Index: coding.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/coding.c,v
retrieving revision 1.285
retrieving revision 1.286
diff -u -c -r1.285 -r1.286
cvs server: conflicting specifications of output style
*** coding.c 2 Jun 2003 18:49:29 -0000 1.285
--- coding.c 4 Jun 2003 12:43:09 -0000 1.286
***************
*** 4505,4511 ****
int magnification;
if (coding->type == coding_type_ccl)
! magnification = coding->spec.ccl.encoder.buf_magnification;
else if (CODING_REQUIRE_ENCODING (coding))
magnification = 3;
else
--- 4505,4515 ----
int magnification;
if (coding->type == coding_type_ccl)
! {
! magnification = coding->spec.ccl.encoder.buf_magnification;
! if (coding->eol_type == CODING_EOL_CRLF)
! magnification *= 2;
! }
else if (CODING_REQUIRE_ENCODING (coding))
magnification = 3;
else