QUrl has an intentional deviation from RFC 3986 when it comes to those characters, matching the behavior of major browsers: we distinguish the forms '[' and ']' from their encoded forms. However, for local files, they are definitely identical, because there's no such thing as a percent-encoded file names. [ChangeLog][QtCore][QUrl] QUrl::fromLocalFile() will now decode the square bracket characters '[' and ']' to their percent-encoded forms. This will be visible in calls to toString(), toEncoded(), or the encoded form of path(). QUrl's comparison operator will consider the old (created from an encoded URL string) and new forms to be different. Pick-to: 6.8 Fixes: QTBUG-134073 Change-Id: I9eae083007103e34f73cfffd59a618069eba0e19 Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit 5e936b60fc921e21b8153a83113886a1de333b57) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%