mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Unneeded Qt dependency


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Unneeded Qt dependency
Date: Wed, 29 Jun 2011 15:01:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110624 Thunderbird/5.0


Also, do you have a minimal example showing where a text conversion only
works when with -no-iconv?

I've rebuilt everything with vanilla mingw-cross-env in order to test properly (my version is *heavily* modified, including patches (even for modifying binutils to do dead-code stripping) and lots of configuration changes.) It seems it works just fine even without -no-iconv. So the non-working QTextCodec does not appear with default mingw-cross-env.

However, I cannot explain why. The docs clearly mention that to use the charset conversion plugins in static builds, you have to explicitly include them. Why they work regardless if you build with '-iconv" is a mystery to me, since iconv is not actually used for anything on Windows.


Well, at this point I'm relieved to find out that the old way without -no-iconv really was broken. The test 'tests/auto/qtextcodec' fails spectacularly:


********* Start testing of tst_QTextCodec *********
Config: Using QTest library 4.7.3, Qt 4.7.3
PASS   : tst_QTextCodec::initTestCase()
PASS   : tst_QTextCodec::threadSafety()
FAIL!  : tst_QTextCodec::toUnicode(korean-eucKR) 'c != 0' returned FALSE. ()
../tst_qtextcodec.cpp(131) : failure location
PASS   : tst_QTextCodec::codecForName()
FAIL!  : tst_QTextCodec::fromUnicode(data32) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(data33) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc2) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc3) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc4) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc5) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc6) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL! : tst_QTextCodec::fromUnicode(doc7-bis) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc11) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
FAIL!  : tst_QTextCodec::fromUnicode(doc18) 'codec != 0' returned FALSE. ()
../tst_qtextcodec.cpp(262) : failure location
PASS   : tst_QTextCodec::toUnicode_codecForHtml()
PASS   : tst_QTextCodec::toUnicode_incremental()
SKIP : tst_QTextCodec::codecForLocale() This test is not implemented on Windows
../tst_qtextcodec.cpp(357) : failure location
PASS   : tst_QTextCodec::asciiToIscii()
PASS   : tst_QTextCodec::flagCodepointFFFF()
PASS   : tst_QTextCodec::flagF7808080()
PASS   : tst_QTextCodec::flagEFBFBF()
PASS   : tst_QTextCodec::decode0D()
PASS   : tst_QTextCodec::codecForIndex()
PASS   : tst_QTextCodec::aliasForUTF16()
PASS   : tst_QTextCodec::mibForTSCII()
PASS   : tst_QTextCodec::utf8Codec()
PASS   : tst_QTextCodec::utf8bom()
PASS   : tst_QTextCodec::utfHeaders()
PASS   : tst_QTextCodec::codecForHtml()
PASS   : tst_QTextCodec::codecForUtfText()
PASS   : tst_QTextCodec::invalidNames()
PASS   : tst_QTextCodec::checkAliases()
FAIL!  : tst_QTextCodec::moreToFromUnicode(BIG5) 'c' returned FALSE. ()
../tst_qtextcodec.cpp(2232) : failure location
FAIL!  : tst_QTextCodec::moreToFromUnicode(GB2312) 'c' returned FALSE. ()
../tst_qtextcodec.cpp(2232) : failure location
PASS   : tst_QTextCodec::cleanupTestCase()
Totals: 21 passed, 13 failed, 1 skipped
********* Finished testing of tst_QTextCodec *********

The tests all pass using the latest mingw-cross-env (changeset 1898:33a76ea753c6).

Thanks again Nikos.

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]