diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-04-24 09:39:47 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-04-24 10:42:41 (GMT) |
commit | fbdf2d74f010c85c85af4ee9ea793039cccf2354 (patch) | |
tree | bfaaba699bdbff6929b6499db8902820547a1065 /tests/auto/qtextcodec | |
parent | 294f32f41da900ad3ae70e1546ea0057f8864d95 (diff) | |
download | Qt-fbdf2d74f010c85c85af4ee9ea793039cccf2354.zip Qt-fbdf2d74f010c85c85af4ee9ea793039cccf2354.tar.gz Qt-fbdf2d74f010c85c85af4ee9ea793039cccf2354.tar.bz2 |
Return the correct MIB number for TSCII. When the code was
written, IANA hadn't assigned one.
Requested/spotted by Nokia i18n team.
Task-number: 251790
Reviewed-by: Brad
Reviewed-by: Denis
AutoTest: In this submit.
Diffstat (limited to 'tests/auto/qtextcodec')
-rw-r--r-- | tests/auto/qtextcodec/tst_qtextcodec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qtextcodec/tst_qtextcodec.cpp b/tests/auto/qtextcodec/tst_qtextcodec.cpp index 536b695..cf4135b 100644 --- a/tests/auto/qtextcodec/tst_qtextcodec.cpp +++ b/tests/auto/qtextcodec/tst_qtextcodec.cpp @@ -69,6 +69,7 @@ private slots: void decode0D() const; void codecForIndex() const; void aliasForUTF16() const; + void mibForTSCII() const; void utf8Codec_data(); void utf8Codec(); @@ -459,6 +460,11 @@ void tst_QTextCodec::aliasForUTF16() const QVERIFY(QTextCodec::codecForName("UTF-16")->aliases().isEmpty()); } +void tst_QTextCodec::mibForTSCII() const +{ + QCOMPARE(QTextCodec::codecForName("TSCII")->mibEnum(), 2107); +} + static QString fromInvalidUtf8Sequence(const QByteArray &ba) { return QString().fill(QChar::ReplacementCharacter, ba.size()); |