summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/codecs
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2013-10-18 09:26:52 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-04 11:16:16 +0100
commit8120083436d4ba2aaf8fbcd422f7e046e6e5e40f (patch)
tree669d1d5601fed76d4b62ed47f1c68cd25334313a /tests/auto/corelib/codecs
parent4058b284942891478a3b73f012b7c98255240e87 (diff)
Replace use of putenv in test case
This should be using qputenv; putenv is deprecated on MSVC. Change-Id: I7c27cf5f7955624fa3553b7a34ab11c6fae462b8 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'tests/auto/corelib/codecs')
-rw-r--r--tests/auto/corelib/codecs/qtextcodec/echo/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp b/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
index 55c831bd35..09c3ac3c09 100644
--- a/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
+++ b/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
@@ -47,8 +47,7 @@
int main(int argc, char **argv)
{
- static char lc_all[] = "LC_ALL=C";
- putenv(lc_all);
+ qputenv("LC_ALL", "C");
QCoreApplication app(argc, argv);
QString string(QChar(0x410));