Ensure that QUrl::toLocalFile returns decoded paths
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 23 Apr 2012 15:06:08 +0000 (17:06 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Apr 2012 17:36:55 +0000 (19:36 +0200)
commit77a816c00d80780f81dfcd723c0a287f2ddf660e
tree728633d2681d3304cae5e74a1a1daac8071aa7a7
parent092118855ba47a0061e5b54198c49c3ad05b5aed
Ensure that QUrl::toLocalFile returns decoded paths

QUrl::path() already decodes almost everything, but let's pass the
formatting flag to be sure.

Note: decoding of control characters from U+0001 to U+001F is not
implemented. Non-UTF8 sequences are also not representable.

Change-Id: I9a0ae2282ec3d48cc0e70e5b2d3824fb120709ed
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/corelib/io/qurl.cpp
tests/auto/corelib/io/qurl/tst_qurl.cpp