1 Jun 2008 17:05
Re: NSURL different in libFoundation and GNUstep base?
developer@... wrote: > On 14.04.2008, at 07:15, Sebastian Reitenbach wrote: > >> This would be a major bug in GNUstep, which is quite unlikely. As > >> mentioned the whole approach is utterly wrong. It is more likely that > >> stringByAddingPercentEscapesUsingEncoding only encodes a subset and > >> is > >> not a proper URL fragment encoder. > > The gnustep documentation to the method implementation starts this > > way: > > /** > > * Constructs a new ASCII string which is a representation of the > > receiver > > * in which characters are escaped where necessary in order to > > produce a > > * legal URL.<br /> > > If you pipe a whole URL through it and it still can be parsed as a > URL, its obviously wrong. The whole point of escaping is that the > result is NOT parsed. > > >> libFoundation is BSD license, we can't include GS code. If you want > >> to > >> write portable code, just use the methods provided by NGExtensions. > > File where I added the stringByReplacingPercentEscapesUsingEncoding > > method > > was in sope-core/NGExtensions/NGExtensions. > I figured out, that there is no problem with NSURL, but with WOHTTPURLHandle.m. It omits the query in the uri.(Continue reading)
RSS Feed