From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh9GT-0002dH-Do for qemu-devel@nongnu.org; Thu, 14 Nov 2013 21:36:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh9G4-00029n-TJ for qemu-devel@nongnu.org; Thu, 14 Nov 2013 21:36:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh9G4-00029e-KR for qemu-devel@nongnu.org; Thu, 14 Nov 2013 21:35:44 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAF2Zggi011159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 14 Nov 2013 21:35:42 -0500 Date: Thu, 14 Nov 2013 21:29:10 -0500 From: Luiz Capitulino Message-ID: <20131114212910.0fbb9d9c@redhat.com> In-Reply-To: <1384439646-19703-1-git-send-email-stefanha@redhat.com> References: <1384439646-19703-1-git-send-email-stefanha@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: filter QEMU monitor \r\n List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org On Thu, 14 Nov 2013 15:34:06 +0100 Stefan Hajnoczi wrote: > SMTP does not preserve newlines. This is normally not a problem if the > email body uses DOS or UNIX newlines consistently. In 051.out we mix > UNIX newlines with DOS newlines (since QEMU monitor output uses \r\n). > > This patch filters the QEMU monitor output so the golden master file > uses UNIX newlines exclusively. > > The result is that patches touching 051.out will apply cleanly without > mangling newlines after this commit. > > Signed-off-by: Stefan Hajnoczi > --- > If you have trouble applying this patch, you can use by git repo: > git://github.com/stefanha/qemu.git fix-qemu-io-cr > > Luiz: CCed you just because I was surprised monitor.c uses \r\n. Perhaps this > is because terminal or telnet emulation is somehow mixed into the core > monitor.c code? Yes, it's telnet support (we allow a telnet client to connect to the monitor).