18 Aug 14:33
KUrl api docs wrong, or bug in the code?
From: Andreas Pakulat <apaku <at> gmx.de>
Subject: KUrl api docs wrong, or bug in the code?
Newsgroups: gmane.comp.kde.devel.core
Date: 2008-08-18 12:35:23 GMT
Subject: KUrl api docs wrong, or bug in the code?
Newsgroups: gmane.comp.kde.devel.core
Date: 2008-08-18 12:35:23 GMT
Hi, the api docs of KUrl say that one can feed the result of KUrl::pathOrUrl() back into the KUrl constructor. But as far as I can see this is not true. The constructor expects a remote url to be in percent-encoding, i.e. no non-ascii characters in path or fragment. While pathOrUrl uses prettyUrl which in turn produces unicode characters instead of percent-encoding in path and fragment. I'm wondering now wether the api dox need to be changed to tell users to use QUrl::setUrl() when reconstructing a url from the result of pathOrUrl() or wether the code needs to be changed. Andreas -- -- You can rent this space for only $5 a week.
RSS Feed