KURL being evil?

Charles Samuels charles at kde.org
Fri Jan 16 14:42:15 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Why is it that KURL::url() cannot be undone?  Or rather said, how do I 
stringify a URL?

allow me to demonstrate:

KURL url;
url.setPath("/home/charles/foo%20moo");
// there is a file name /home/charles/foo%20moo -- the documentation says that
// setPath() (and path()) operate on decoded values

QString path = url.url();
path == "file:/home/charles/foo%20moo"; // this is correct for the same reason

KURL(path).path() == "file:/home/charles/foo moo";

Is there a function I haven't noticed, is this a bug, or is there a function 
that's missing?

- -Charles

- -- 
Charles Samuels <charles at kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAB/hKWS4Pv66UcxkRAoAFAJ9mifuAx7szImZMIIRUQOtTo0Dw+ACeN2wz
44QfLkBYYFnZ3lGqm4krWiE=
=GBB2
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list