Received: from [140.186.70.92] (port=38296 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTaSL-00017o-GE for qemu-devel@nongnu.org; Fri, 17 Dec 2010 08:34:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTaSK-00056n-Fs for qemu-devel@nongnu.org; Fri, 17 Dec 2010 08:34:45 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:56681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTaSK-00056Y-0G for qemu-devel@nongnu.org; Fri, 17 Dec 2010 08:34:44 -0500 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4D0A95BC.8040509@redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] Re: [PATCH] win32: Fix CRLF problem in make_device_config.sh Date: Fri, 17 Dec 2010 14:34:19 +0100 References: <1292536325-12881-1-git-send-email-weil@mail.berlios.de> <4D0A95BC.8040509@redhat.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: QEMU Developers Am 16.12.2010 um 23:42 schrieb Paolo Bonzini: > On 12/16/2010 10:52 PM, Stefan Weil wrote: >> QEMU source code with CRLF line endings >> which is quite common on windows hosts >> fails with current make_device_config.sh. >> >> The awk script gets the name of the included >> file with \r, so instead of pci.mak it will >> search for pci.mak\r which of course does >> not work. >> >> Fix this by removing any \r at end of line. > > Why isn't cygwin (or whatever you're using) removing it? I believe Cygwin had an option to choose the line ending style once during setup. By default it uses Unix-style line endings. If someone edits source files in some Windows editor, the above issue seems likely. My awk foo is insufficient to ack the patch but if it doesn't break Unices it looks reasonable to me. Andreas