Mark QUrl::{to,from}Punycode as deprecated since 5.0
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 2 Sep 2011 18:43:50 +0000 (20:43 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 23:19:59 +0000 (01:19 +0200)
commit4c7e950aad0ed7b2bc114b3ffd5c73f7a433af52
tree44b049f6f5f04a935b57faeb758a34f58eb15615
parent8fa2a41bd5fb0e21c3cbda3d76eba77a922bded2
Mark QUrl::{to,from}Punycode as deprecated since 5.0

These functions are now aliases to {to,from}Ace, which are usually
what you want. The original functions from Qt 4.0 had the wrong
semantics and wrong name. The new ones from Qt 4.2 execute the ACE
processing from IDNA (specifically, the ToASCII and ToUnicode
operations described in the RFC).

But so as not to be without tests, export the tests in unit testing
environment and test the punycode roundtrip. Note that the
tst_QUrl::idna_test_suite test tests *only* the Punycode roundtrip,
not the nameprepping.

Change-Id: I9b95b4bd07b4425344a5c6ef5cce7cfcb9846d3e
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl.cpp
src/corelib/io/qurl.h
tests/auto/corelib/io/qurl/qurl.pro
tests/auto/corelib/io/qurl/tst_qurl.cpp
tests/auto/corelib/io/qurlinternal/qurlinternal.pro [new file with mode: 0644]
tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp [new file with mode: 0644]