summaryrefslogtreecommitdiffstats
path: root/src/corelib/xml
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-05-06 22:24:46 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-05-13 01:08:39 +0000
commit237e73df945ad9a82a658647a28706d04b63a6a6 (patch)
tree9cfec626b7ed44215e560a1d74278080fa7fb78c /src/corelib/xml
parent43cab86802fb5a7447e6fd2d451f97a37b53f13c (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/xml')
0 files changed, 0 insertions, 0 deletions