From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.bugs Subject: Re: Process output truncation when using UTF-8 Date: Fri, 13 Jun 2003 12:38:56 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87u1aui7nj.fsf@zamazal.org> References: <874r3f1ocb.fsf@zamazal.org> <200305300816.RAA21216@etlken.m17n.org> <87el2bi4uy.fsf@zamazal.org> <200306041248.VAA01372@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1055500713 10949 80.91.224.249 (13 Jun 2003 10:38:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2003 10:38:33 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 12:38:28 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 19QlvN-0002iw-00 for ; Fri, 13 Jun 2003 12:36:49 +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 19Qlxu-0004TO-B0 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2003 06:39:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Qlxo-0004O6-ON for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 06:39:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Qlxi-0004F2-2J for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 06:39:14 -0400 Original-Received: from ms2.dkm.cz ([62.24.64.14]) by monty-python.gnu.org with smtp (Exim 4.20) id 19QlxS-00048M-QZ for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 06:38:58 -0400 Original-Received: (qmail 2904 invoked by uid 0); 13 Jun 2003 10:38:57 -0000 Original-Received: from l250.brno.mistral.cz (HELO blackbird) (62.245.107.250) by ms2.dkm.cz with SMTP; 13 Jun 2003 10:38:57 -0000 Original-Received: from pdm by blackbird with local (Exim 3.36 #1 (Debian)) id 19QlxR-0008IA-00; Fri, 13 Jun 2003 12:38:57 +0200 Original-To: Kenichi Handa X-Face: >kl&pL}(a*u\BCj7Q,\Yoq35~,4dAu"CPGaJ[ahMli9uu#aF7dWxc3L.eaK2RWRU|',E+. -':&gJ-JAZ/N$f^4-3?G7M&Knna[A=lJ$}^!%@vuvulVl6-)x.V8RZ7fW9< In-Reply-To: <200306041248.VAA01372@etlken.m17n.org> (Kenichi Handa's message of "Wed, 4 Jun 2003 21:48:25 +0900 (JST)") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) 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:5293 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5293 --=-=-= >>>>> "KH" == Kenichi Handa writes: KH> In article <87el2bi4uy.fsf@zamazal.org>, Milan Zamazal KH> writes: >> Thank you. The case I've reported works well in Emacs 21.3, but >> this one still truncates the output: KH> [...] >> The difference is that the process encoding is set to utf-8-dos >> now instead of utf-8. KH> Thank you for testing it. Please try this additional patch. Thank you. The file is no longer truncated, but there's an extra blank line inserted after each line of the text. The unchanged test case reproduces the problem: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=utf-8-bug.el (set-language-environment "czech") (let ((process (start-process "foo" nil "tee" "/tmp/foo"))) (set-process-coding-system process 'utf-8-dos 'utf-8-dos) (help-with-tutorial) (set-buffer "TUTORIAL.cs") (process-send-string process (buffer-substring-no-properties (point-min) (point-max))) (process-send-eof process)) --=-=-= It seems LF-LF is inserted at the ends of lines, instead of CR-LF. If the process encoding is set to `utf-8' instead of `utf-8-dos', everything is fine, there are no extra blank lines. The problem was present already before applying the additional patch. I think it wasn't present in untouched Emacs 21.3, but I'm not sure. Regards, Milan Zamazal -- The seeker after truth should be humbler than the dust. The world crushes the dust under its feet, but the seeker after truth should so humble himself that even the dust could crush him. -- M. K. Gandhi --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --=-=-=--