emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Invalid output to process]


From: Kenichi Handa
Subject: Re: address@hidden: Invalid output to process]
Date: Thu, 24 Nov 2005 21:57:29 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, "Richard M. Stallman" <address@hidden> writes:

> Here is his bug report.
> ------- Start of forwarded message -------
> To: address@hidden
> From: Milan Zamazal <address@hidden>
[...]
> Subject: Invalid output to process
[...]
> - - Now you can examine the bug in a simpler way, proving there is an
>   Emacs bug outside the attached Elisp files.  Run any TCP server which
>   can receive and print input received from a socket.  (I use `socket'
>   available from
>   http://http.us.debian.org/debian/pool/main/s/socket/socket_1.1.orig.tar.gz
>   and run it as `socket -s 1234'.)

> - - Open the following Elisp file and perform `M-x eval-current-buffer'
>   (assuming the server is running on port 1234):
[...]
> (setq process (open-network-stream "test" nil "localhost" 1234))
> (set-process-coding-system process 'raw-text-unix 'raw-text-unix)
> (dolist (string foo)
>   (process-send-string process string))
> (delete-process process)

I've just tested it, but the output was exactly the same as
the file "output-correct" which you sent in the previous
mail.

I also tried to change all elements of foo to
multibyte-string by string-to-multibyte, but still couldn't
reproduce a bug.

Could you please try this instead?

% ./socket -s 1234|od -t x1 -v

and eval this:

(let ((str "\236               "))
  (setq process (open-network-stream "test" nil "localhost" 1234))
  (set-process-coding-system process 'raw-text-unix 'raw-text-unix)
  (process-send-string process str)
  (process-send-string process (string-to-multibyte str))
  (set-process-coding-system process 'no-conversion 'no-conversion)
  (process-send-string process str)
  (process-send-string process (string-to-multibyte str))
  (delete-process process))

This is what I got (which seems to be correct):

[1012] ./socket -s 1234|od -t x1 -v
0000000 9e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0000020 9e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0000040 9e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0000060 9e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0000100

---
Kenichi Handa
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]