Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCxv8-0007Bk-Aa for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:58:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCxv6-00079z-Fs for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:58:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCxv6-00079e-5B for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:58:08 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCxv4-0000PI-Jz for qemu-devel@nongnu.org; Thu, 10 Jan 2008 08:58:07 -0500 Subject: Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows From: Laurent Vivier In-Reply-To: <47861E01.6050709@qumranet.com> References: <1199871092.4337.4.camel@frecb07144> <1199873069.4337.20.camel@frecb07144> <1199880481.4337.31.camel@frecb07144> <1199883098.4337.42.camel@frecb07144> <1199957735.4773.22.camel@frecb07144> <1199967143.4773.38.camel@frecb07144> <47861E01.6050709@qumranet.com> Date: Thu, 10 Jan 2008 14:58:28 +0100 Message-Id: <1199973508.4773.69.camel@frecb07144> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-4BuJiZqNLn4YWfUDxbbW" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org --=-4BuJiZqNLn4YWfUDxbbW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le jeudi 10 janvier 2008 =C3=A0 15:30 +0200, Avi Kivity a =C3=A9crit : > Johannes Schindelin wrote: > > Hi, > > > > On Thu, 10 Jan 2008, Laurent Vivier wrote: > > > > =20 > >> Perhaps the best solution is to put "file=3D" option at the end of=20 > >> aliases, '\0' is marking the end of filename (it is likely the idea of= =20 > >> andrzej about special characters). > >> =20 > > > > Oh, why not just make it a requirement that file=3D comes last, always? > > > > =20 >=20 > That's hardly intuitive. I would prefer some sort of escaping for \,=20 > and \=3D. It will also break if/when -drive gains another filename=20 > argument (say, for keeping shapshot data in). I agree with our comments, but this not solves the original issue with windows (double backslash). - we can't use '\' because it force to double it for windows - we must be able to escape characters to be able to use ',' and '=3D' in filename (in fact ' ' is not an issue). perhaps the solution is to use a different escape character ? Do you like '^' ? qemu -hda "my file" -> filename is "my file" qemu -hda my^,file -> filename is "my,file" qemu -drive file=3Dmy^^file -> filename is "my^file" Johannes, I'm sorry, but it seems there is no other way than reparsing (lightly) the string. =20 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 --=-4BuJiZqNLn4YWfUDxbbW 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) iD8DBQBHhiSE9Kffa9pFVzwRAt95AJwNdsqncEIk/gGraK1kWCNhDI64wgCglDIC 2ICvNhHrC7PYhqR5uTZN4As= =v+mi -----END PGP SIGNATURE----- --=-4BuJiZqNLn4YWfUDxbbW--