* Jan Hudec <bulb@ucw.cz> [2007-10-30 20:36:10 +0100]:I don't think the '+' is quoting for ' ' part is fully correct, at least not if you're talking about "real RFC 2396 URLs" (not "Git URLs"). I might misunderstand you here, but there has also been other postings suggesting that plus should/could be used instead of space, implying that people think that pluses are always transformed to spaces in URLs. But if I understand RFC 2396 correctly, this is *not* the case. RFC 2396 says that pluses are treated as "reserved" in the *query* part of the URL (ie on the right side of the question mark) -- here they *are* transformed to spaces, although the RFC itself doesn't really say specifically what happens to them. In the path part, pluses are not "reserved", they are simply a "pchar" along with "unreserved", "escaped" and a couple of other characters. There is nothing in the RFC implying that pluses in the path part will be transformed into spaces, and in my experience this does not happen in practice either. To recap: (In the examples below <...> is used to mean legal URLs, while "..." is used to mean "the literal characters in the URL" (more or less)) * In the query part: '%20' = '+' = a literal space '%2B' = a literal plus For example: <http://example.com/somescript?v=x%20y> = <http://example.com/somescript?v=x+y> = "http://example.com/somescript?v=x y" <http://example.com/somescript?v=x%2By> = "http://example.com/somescript?v=x+y" * In the path part: '%20' = a literal space '%2B' = '+' = a literal plus For example: <http://example.com/x%20y.html> = "http://example.com/x y.html" <http://example.com/x%2By> = <http://example.com/x+y> = "http://example.com/x+y" I'm not advocating that "Git URLs" necessarily should be made fully RFC 2396 compliant (neither am I nitpicking just for the sake of nitpicking), I'm just pointing out that if someone *should* want to make "Git URLs" fully or more RFC 2396 compliant in some way for some reason, having pluses being automatically transformed to spaces in the path part of the URL does not follow the RFC (as far as I understand it). -- Erik Warendorph <erik@warendorph.org> - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Re: O_DIRECT question |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Dave Airlie | Re: [2.6.25-rc6] possible regression: X server dying |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Petr Baudis | repo.or.cz wishes? |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Matthieu Moy | [BUG] git-svn dcommit fails (connection closed unexpectedly) |
| Jakub Narebski | Git User's Survey 2007 partial summary |
| Ondřej Surý | openbgp not exporing ipv6 to routing tables |
| Nick Guenther | Re: Real men don't attack straw men |
| Christophe Rioux | OpenBSD as host for VMWare Server |
| Bambero | two wan interfaces |
| Warner Losh | Re: SMP re-eetrancy in "bottom half" drivers |
| Martin Husemann | Re: Prototype kernel continuation-passing for NetBSD |
| Martin Husemann | Dynamic registry of ehternet frame types |
| der Mouse | Re: file id alignment |
