diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-06 22:24:46 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-13 01:08:39 +0000 |
commit | 237e73df945ad9a82a658647a28706d04b63a6a6 (patch) | |
tree | 9cfec626b7ed44215e560a1d74278080fa7fb78c /src/corelib/corelib.pro | |
parent | 43cab86802fb5a7447e6fd2d451f97a37b53f13c (diff) |
Don't assume QLocale::codecForLocale always returns non-null
It may return null during program exit, due to QCoreGlobalData global
static already having been destroyed, or due to the codec name/mib being
unsupported by ICU. If that's the case, QTextStream needs to fall back
to Latin 1, like QString::toLocal8Bit and fromLocal8Bit already do.
Change-Id: Ia888243669e051e78e0dbe0bb1bc55a1c4f519d8
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib/corelib.pro')
0 files changed, 0 insertions, 0 deletions