diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-04-14 15:31:06 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-11 05:13:49 +0200 |
commit | f2a40fa07123748ece2fc93790345379f15ef07f (patch) | |
tree | bb157bbcc3fd5113cf238b80b4e38f185793b80c /src/testlib/qtestcase.h | |
parent | ec8102166449b9b323948c0a8f5fabfa38705139 (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. If that's the case, QTextStream
needs to fall back to Latin 1, like QString::toLocal8Bit and
fromLocal8Bit already do.
Task-number: QTBUG-38316
Change-Id: I5949c8dec15b60f4a13b5d9307ed6abfc799fe20
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/testlib/qtestcase.h')
0 files changed, 0 insertions, 0 deletions