From: Kenichi Handa <handa@m17n.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Process output truncation when using UTF-8
Date: Thu, 19 Jun 2003 13:24:19 +0900 (JST) [thread overview]
Message-ID: <200306190424.NAA22942@etlken.m17n.org> (raw)
In-Reply-To: <87u1aui7nj.fsf@zamazal.org> (message from Milan Zamazal on Fri, 13 Jun 2003 12:38:56 +0200)
>>>>>> "KH" == Kenichi Handa <handa@m17n.org> writes:
KH> In article <87el2bi4uy.fsf@zamazal.org>, Milan Zamazal
KH> <pdm@zamazal.org> 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:
> [2 utf-8-bug.el <application/emacs-lisp (7bit)>]
> [3 <text/plain (7bit)>]
> It seems LF-LF is inserted at the ends of lines, instead of CR-LF.
I can reproduce this bug, but it's not an error of encoding
routine. I can reproduce this bug also with this test case.
(set-language-environment "English")
(let ((process (start-process "foo" nil "tee" "/tmp/foo")))
(set-process-coding-system process 'raw-text-dos 'raw-text-dos)
(help-with-tutorial)
(set-buffer "TUTORIAL")
(process-send-string process (buffer-substring-no-properties
(point-min) (point-max)))
(process-send-eof process))
The encoding routine correctly produces CR LF, but somehow
CR is converted to LF (perhaps by pty because the following
test works correctly).
(set-language-environment "English")
(let* ((process-connection-type nil)
(process (start-process "foo" nil "tee" "/tmp/foo")))
(set-process-coding-system process 'raw-text-dos 'raw-text-dos)
(help-with-tutorial)
(set-buffer "TUTORIAL")
(process-send-string process (buffer-substring-no-properties
(point-min) (point-max)))
(process-send-eof process))
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2003-06-19 4:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 8:12 Process output truncation when using UTF-8 Milan Zamazal
2003-05-30 8:16 ` Kenichi Handa
2003-06-03 14:59 ` Milan Zamazal
2003-06-04 12:48 ` Kenichi Handa
2003-06-13 10:38 ` Milan Zamazal
2003-06-19 4:24 ` Kenichi Handa [this message]
2003-06-20 3:15 ` Richard Stallman
2003-06-20 4:20 ` Kenichi Handa
2003-06-21 4:56 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200306190424.NAA22942@etlken.m17n.org \
--to=handa@m17n.org \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.