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: Tue, 03 Jun 2003 16:59:49 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87el2bi4uy.fsf@zamazal.org> References: <874r3f1ocb.fsf@zamazal.org> <200305300816.RAA21216@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1054654887 31879 80.91.224.249 (3 Jun 2003 15:41:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 15:41:27 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 17:41:25 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 19NDtO-0008CY-00 for ; Tue, 03 Jun 2003 17:40:07 +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 19NDnO-0007yq-M4 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 11:33:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NDiF-0006CR-Py for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2003 11:28:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NDOZ-000114-EH for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2003 11:08:16 -0400 Original-Received: from ms2.dkm.cz ([62.24.64.14]) by monty-python.gnu.org with smtp (Exim 4.20) id 19NDGS-00075K-K5 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2003 10:59:52 -0400 Original-Received: (qmail 34865 invoked by uid 0); 3 Jun 2003 14:59:49 -0000 Original-Received: from l120.brno.mistral.cz (HELO blackbird) (62.245.107.120) by ms2.dkm.cz with SMTP; 3 Jun 2003 14:59:49 -0000 Original-Received: from pdm by blackbird with local (Exim 3.36 #1 (Debian)) id 19NDGP-00015R-00; Tue, 03 Jun 2003 16:59:49 +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: <200305300816.RAA21216@etlken.m17n.org> (Kenichi Handa's message of "Fri, 30 May 2003 17:16:52 +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:5223 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5223 --=-=-= >>>>> "KH" == Kenichi Handa writes: KH> In article <874r3f1ocb.fsf@zamazal.org>, Milan Zamazal KH> writes: >> When I start a process, set its input and output encoding to >> utf-8 and send a long string to it through process-send-string, >> usually some final part of the sent string is missing on the >> recipient's side. KH> Thank you for the report. I've just installed the attached KH> change in RC and HEAD. It should be applicable also to Emacs KH> 21.3. Thank you. The case I've reported works well in Emacs 21.3, but this one still truncates the output: --=-=-= 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)) --=-=-= The difference is that the process encoding is set to utf-8-dos now instead of utf-8. Regards, Milan Zamazal -- Here is my advice, don't try to program the bleeding edge for the general populace unless you really, really, really like migraines. Neal H. Walfield --=-=-= 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 --=-=-=--