|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Add HTTP protocol using curl v2 |
Date: | Wed, 06 May 2009 11:51:47 -0500 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
Avi Kivity wrote:
Anthony Liguori wrote:So what should the generic escaping look like?-drive file=my-silly\:filename\,with\ strange\ charactersI see no reason to do anything overly complicated. Of course, if you're in a shell, you'll have to double escape unless you've got single quotes around it. That's a good argument for file: in addition to escaping.With backslash escaping, I never know how many backslashes I end up with. They're also the path separators in one OS.I'd go with URL separating: -drive file=file:my-silly%3afilename%2cwith%20strange%20characters
URI escaping has some pretty strange rules because there set of characters allowed in a URI is << what is representable in a shell without requiring escaping.
But honestly, I don't care that much. I'll leave the decision up to whoever writes up the patch.
Regards, Anthony Liguori
[Prev in Thread] | Current Thread | [Next in Thread] |