Details
-
Suggestion
-
Resolution: Done
-
P0: Blocker
-
4.8.0
-
None
-
Ark Linux dockyard-devel, gcc 4.6, eglibc 2.14
-
182acb541a7b8ac0edca842fdc867751df723f50
Description
This piece of code:
QUrl u=QUrl::fromEncoded("/etc/passwd");
qDebug() << u.toLocalFile();
produces (as expected) "/etc/passwd" on Qt 4.7.x - on Qt 4.8.x, it produces ""
Qt5's QUrl constructor should work like Qt4's QUrl::fromEncoded, but it should decode strings without path as local files and set scheme() to "file".
Attachments
Issue Links
- relates to
-
QTBUG-22382 QUrl.toLocalFile returns nothing if given non-canonical path
- Closed
For Gerrit Dashboard: QTBUG-19827 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
14360,4 | Change QUrl::toLocalFile to return path for relative urls | 4.8 | qt/qt | Status: MERGED | +2 | 0 |
14460,2 | Change QUrl::toLocalFile to return path for relative urls | 4.8.0-symbian | qt/qt | Status: MERGED | +2 | 0 |