PDA

View Full Version : QTextCodec and ICU libraries



splinterz
10th February 2014, 11:05
I have a compiled version of QT without the ICU libraries to reduce the size of a particular project. Everything has been working fine until I recently added some QTextCodec functionality, which crashes the application due to QCore exceptions.

The curious thing is that using a toUnicode function:
QTextCodec::codecForName("IBM 437")->toUnicode(buf); crashes, but using a fromUnicode
QByteArray data = QTextCodec::codecForName("IBM 437")->fromUnicode(str); is just fine.

Is this intended behaviour? Is my conclusion correct that any call to toUnicode requires ~20mb of libraries be included with the executable?