KURL construction bug?
Adriaan de Groot
adridg at cs.kun.nl
Fri Feb 27 21:17:46 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 27 February 2004 22:12, Andras Mantia wrote:
> I've just noticed a strange (for me) behavior in the KURL. I'd like to
> construct a KURL from a string which is in a form of
> "/path/filename#reference". If I use:
That's a legal filename (consider all the .#foo files CVS makes), and the
setPath() docs say it's considered decoded. Also read the comments at the top
of kurl.h:
* If you have the absolute path and need the URL-escaping you should create
* KURL via the default-constructor and then call setPath(const QString&).
* \code
* KURL kurl;
* kurl.setPath("/bar/#foo#");
* QString url = kurl.url(); // -> "file:/bar/%23foo%23"
* \endcode
- --
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot at kde.org>
Would you like a freem?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAP7P6dqzuAf6io/4RAhOhAKCMH1bPbsfV5hOlhice9FLKpjoBBwCghHt7
k45QHXkCy4XWXtSRLKrHOAg=
=RbVy
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list