ICU: Fix crash in codecForMib(2107)
authorKai Koehne <kai.koehne@nokia.com>
Wed, 22 Aug 2012 11:51:45 +0000 (13:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Aug 2012 09:20:37 +0000 (11:20 +0200)
commite177a35dfe62dfebdd1381f30dc5f5b83b1d6b74
tree8954355c48244376a9d846db88e3bf20122fc2ed
parente9bc07c4f24e8580a688c41b91a63e12851bb5ce
ICU: Fix crash in codecForMib(2107)

availableMibs() unconditionally adds 2107 to the list of mibs. The patch
ensures that codecForMib() also knows about this special TSCII codec.

(Note that the autotest only really checks this code path if only this
test case is run. The other tests already fill the internal codec cache
otherwise).

Change-Id: Id987d7cecd5f5700cca75e9b85b37011f8e5c622
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/codecs/qicucodec.cpp
tests/auto/corelib/codecs/qtextcodec/tst_qtextcodec.cpp