Received: from [140.186.70.92] (port=36573 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTg4i-00067Q-H2 for qemu-devel@nongnu.org; Fri, 17 Dec 2010 14:34:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTg4h-0003DX-Bi for qemu-devel@nongnu.org; Fri, 17 Dec 2010 14:34:44 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:59696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTg4g-0003DF-Ji for qemu-devel@nongnu.org; Fri, 17 Dec 2010 14:34:43 -0500 Message-Id: <7DDF4A15-DEEC-422A-94C7-8ED20B6DAA92@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4D0BB3A1.30001@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable 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 20:33:38 +0100 References: <1292536325-12881-1-git-send-email-weil@mail.berlios.de> <4D0A95BC.8040509@redhat.com> <4D0B6922.3090401@redhat.com> <4D0BB3A1.30001@mail.berlios.de> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Paolo Bonzini , QEMU Developers Am 17.12.2010 um 20:01 schrieb Stefan Weil: > Am 17.12.2010 14:44, schrieb Paolo Bonzini: >> On 12/17/2010 02:34 PM, Andreas F=E4rber wrote: >>>>> >>>>> 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 =20 >>> issue >>> seems likely. >> >> Hmm, MSYS is more problematic: the manual says "In the MSYS =20 >> environment under Windows, `gawk' automatically uses binary mode =20 >> for reading and writing files. Thus there is no need to use the =20 >> `BINMODE' variable. This can cause problems with other Unix-like =20 >> components that have been ported to Windows that expect `gawk' to =20 >> do automatic translationof `"\r\n"', since it won't.". > > I had the \r problem when using msys. There seem to be several =20 > factors: > > * git configuration (add CR / don't add CR) > * msys mount options (binmode / textmode) > * (g)awk (read binary) > >> >>> My awk foo is insufficient to ack the patch but if it doesn't break >>> Unices it looks reasonable to me. >> >> I'd be worried a bit about Solaris and other proprietary OSes with =20= >> prehistoric Unix utilities. Perhaps using \012 instead of \r is =20 >> better. >> >> Paolo > > I currently have no possibility to run tests with other awk =20 > implementations, > so I cannot tell whether \012 is needed at all (\r is not a new =20 > invention). > Do all awk versions support regular expressions with characters in > octal encoding?. > > Perhaps we can wait several days for feedback from users with an old =20= > awk > and apply the patch if there is none. I have an open bug ticket wrt configure being broken on Solaris 10 due =20= to tracing shell incompatibilities. If you provide a small self-contained example I can check though. Andreas=