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
);
QTextCodec::codecForName("IBM 437")->toUnicode(buf);
To copy to clipboard, switch view to plain text mode
crashes, but using a fromUnicode
QByteArray data = QTextCodec::codecForName("IBM 437")->fromUnicode(str);
To copy to clipboard, switch view to plain text mode
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?
Bookmarks