In article <[EMAIL PROTECTED]>, "Richard M. Stallman" <[EMAIL PROTECTED]> 
writes:

> Here is his bug report.
> ------- Start of forwarded message -------
> To: [email protected]
> From: Milan Zamazal <[EMAIL PROTECTED]>
[...]
> 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
[EMAIL PROTECTED]


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to