unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1523: [Ivan Shmakov] process-send-string apparently mangles \r into \n
@ 2008-12-09 21:15 Sven Joachim
  2009-01-12 17:24 ` richardeng
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sven Joachim @ 2008-12-09 21:15 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

I received the following report via the Debian bug tracking system.
It is reproducible in the trunk.


[-- Attachment #2: Type: message/rfc822, Size: 1689 bytes --]

From: Ivan Shmakov <oneingray@gmail.com>
To: submit@bugs.debian.org
Cc: Ivan Shmakov <oneingray@gmail.com>
Subject: Bug#508300: process-send-string apparently mangles \r into \n
Date: Wed, 10 Dec 2008 01:14:09 +0600
Message-ID: <87abb5gnzy.fsf@violet.siamics.int>

Package: emacs22
Version: 22.2+2-5

	After running the following program:

(let* ((coding-system-for-read  'binary)
       (coding-system-for-write 'binary)
       (p (start-process "foo" "*foo*" "od" "-td1")))
    (process-send-string p "\r\n")
    (process-send-eof p))
;; => #<process foo>

	the `*foo*' buffer contains:

--cut: *foo*--
0000000   10   10
0000002

Process foo finished
--cut: *foo*--

	While I'd expect the following instead:

--cut: *foo*--
0000000   13   10
0000002

Process foo finished
--cut: *foo*--

	Compare:

(let ((coding-system-for-read  'binary)
      (coding-system-for-write 'binary))
  (save-excursion
    (set-buffer "*foo*")
    (let* ((start (point))
	   (end   (progn (insert "\r\n") (point))))
      (call-process-region start end "od" t t t "-td1"))))

--cut: *foo*--
0000000   13   10
0000002
--cut: *foo*--



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-11 20:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 21:15 bug#1523: [Ivan Shmakov] process-send-string apparently mangles \r into \n Sven Joachim
2009-01-12 17:24 ` richardeng
2009-01-12 17:58 ` richardeng
2011-09-11 18:26 ` Lars Magne Ingebrigtsen
2011-09-11 19:24   ` Andreas Schwab
2011-09-11 19:27     ` Lars Magne Ingebrigtsen
2011-09-11 20:23       ` Andreas Schwab
2011-09-11 20:40         ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).