From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: Re: Process output truncation when using UTF-8 Date: Wed, 4 Jun 2003 21:48:25 +0900 (JST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200306041248.VAA01372@etlken.m17n.org> References: <874r3f1ocb.fsf@zamazal.org> <200305300816.RAA21216@etlken.m17n.org> <87el2bi4uy.fsf@zamazal.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1054731825 6948 80.91.224.249 (4 Jun 2003 13:03:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 13:03:45 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 15:03:40 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NXvY-0001nK-00 for ; Wed, 04 Jun 2003 15:03:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NXww-00021N-Fz for gnu-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2003 09:05:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NXws-0001zC-4a for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 09:05:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NXoC-0007rF-98 for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 08:56:04 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NXgz-0004km-7s for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 08:48:37 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h54CmQu18567; Wed, 4 Jun 2003 21:48:26 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h54CmP919078; Wed, 4 Jun 2003 21:48:25 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id VAA01372; Wed, 4 Jun 2003 21:48:25 +0900 (JST) Original-To: pdm@zamazal.org In-reply-to: <87el2bi4uy.fsf@zamazal.org> (message from Milan Zamazal on Tue, 03 Jun 2003 16:59:49 +0200) 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) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5228 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5228 In article <87el2bi4uy.fsf@zamazal.org>, Milan Zamazal 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