Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCcBA-0002KG-Js for qemu-devel@nongnu.org; Wed, 09 Jan 2008 09:45:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCcB8-0002Il-VI for qemu-devel@nongnu.org; Wed, 09 Jan 2008 09:45:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCcB8-0002Id-NN for qemu-devel@nongnu.org; Wed, 09 Jan 2008 09:45:14 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCcB7-0007WL-NK for qemu-devel@nongnu.org; Wed, 09 Jan 2008 09:45:14 -0500 Subject: Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows From: Laurent Vivier In-Reply-To: References: <1199871092.4337.4.camel@frecb07144> <1199873069.4337.20.camel@frecb07144> <1199880481.4337.31.camel@frecb07144> <1199883098.4337.42.camel@frecb07144> <1199886392.4337.52.camel@frecb07144> Date: Wed, 09 Jan 2008 15:45:38 +0100 Message-Id: <1199889938.4337.57.camel@frecb07144> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-jJge9VvdkHlH1/uEW4KZ" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?ISO-8859-1?Q?Herv=E9?= Poussineau --=-jJge9VvdkHlH1/uEW4KZ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le mercredi 09 janvier 2008 =C3=A0 14:56 +0100, andrzej zaborowski a =C3=A9= crit : > On 09/01/2008, Laurent Vivier wrote: > > Le mercredi 09 janvier 2008 =C3=A0 13:27 +0000, Johannes Schindelin a = =C3=A9crit : > > > Hi, > > > > > > On Wed, 9 Jan 2008, Laurent Vivier wrote: > > > > > > > Le mercredi 09 janvier 2008 =C3=A0 12:27 +0000, Johannes Schindelin= a =C3=A9crit : > > > > > > > > > On Wed, 9 Jan 2008, Laurent Vivier wrote: > > > > > > > > > > > but "-hda" is an alias for "-drive file=3D"%s",index=3D%d,media= =3Ddisk". > > > > > > > > > > It appears to me as if "-hda" is implemented suboptimally, then. = In > > > > > particular, drive_add() should be able to get a separate "file" > > > > > parameter, which can be overridden by the "fmt" parameter. Of co= urse, > > > > > this would mean that the global drives_opt[] array should not hav= e > > > > > element type "char", but a struct. > > > > > > > > This introduces complexity and special cases I don't want to manage= ... > > > > > > The problem is that you introduced a regression, as you can see by th= e > > > size of this thread. > > > > The solution is very simple to restore original behavior: don't manage > > filename with spaces. >=20 > The original -hda had no problems with spaces in filenames afaik? The > trick in the original -hda syntax was that the path component was > always last in the string (e.g. fat:rw:path), while in -drive there > can be attributes after the path so you need a (single) character that > has a special function. Currently there are five: space, comma, quote, > backslash, equal. I'm stupid, you're right... Laurent --=20 ----------------- Laurent.Vivier@bull.net ------------------ "La perfection est atteinte non quand il ne reste rien =C3=A0 ajouter mais quand il ne reste rien =C3=A0 enlever." Saint Exup=C3=A9ry --=-jJge9VvdkHlH1/uEW4KZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHhN4S9Kffa9pFVzwRArQhAJ4rcT22ZFoiH6IJO1JhC2Bl9dRl8gCfeZRK rr3xHPiyFvAp7i6v6Khsw6c= =Sb7j -----END PGP SIGNATURE----- --=-jJge9VvdkHlH1/uEW4KZ--