diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-27 04:50:10 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-27 06:16:21 (GMT) |
commit | 5a7d29039917d9f0faf373045e8dbb274837c11d (patch) | |
tree | e03a9c2d0d0f331631e4a7c4981dec588d18b6de /tests/auto/qbytearray/tst_qbytearray.cpp | |
parent | ba5b630fd58127a4bcfe2baf92603a7bc8899824 (diff) | |
download | Qt-5a7d29039917d9f0faf373045e8dbb274837c11d.zip Qt-5a7d29039917d9f0faf373045e8dbb274837c11d.tar.gz Qt-5a7d29039917d9f0faf373045e8dbb274837c11d.tar.bz2 |
Fixed failure of tst_qlocale if run when LC_ALL is set.
This test tried to be unaffected by the locale environment variables
set by the user by explicitly overwriting them and spawning a new
process. However this was only done for LANG and not the other
variables which can affect the locale. Do it for all the locale
variables.
Also, the previous approach (store the current value with qgetenv, then
put it back with qputenv later) doesn't really work because that
effectively takes variables which weren't set and sets them to an empty
string, which is not the same thing. Use QProcess::setEnvironment
instead.
Reviewed-by: Andy Shaw
Diffstat (limited to 'tests/auto/qbytearray/tst_qbytearray.cpp')
0 files changed, 0 insertions, 0 deletions