diff options
Diffstat (limited to 'src/corelib/codecs/qicucodec.cpp')
-rw-r--r-- | src/corelib/codecs/qicucodec.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/codecs/qicucodec.cpp b/src/corelib/codecs/qicucodec.cpp index 79a3f77595..000f6872b5 100644 --- a/src/corelib/codecs/qicucodec.cpp +++ b/src/corelib/codecs/qicucodec.cpp @@ -453,8 +453,11 @@ QTextCodec *QIcuCodec::codecForNameUnlocked(const char *name) // backwards compatibility with Qt 4.x if (!qstrcmp(name, "CP949")) name = "windows-949"; - // this one is broken data in ICU 4.4, and can't be resolved even though it's an alias to tis-620 - if (!qstrcmp(name, "windows-874-2000")) + // these are broken data in ICU 4.4, and can't be resolved even though they are aliases to tis-620 + if (!qstrcmp(name, "windows-874-2000") + || !qstrcmp(name, "windows-874") + || !qstrcmp(name, "MS874") + || !qstrcmp(name, "x-windows-874")) name = "TIS-620"; UErrorCode error = U_ZERO_ERROR; |