diff options
author | David Boddie <dboddie@trolltech.com> | 2009-04-01 13:47:08 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-04-01 13:47:08 (GMT) |
commit | 5ed526bea6331055941360e01024a1a1af57feed (patch) | |
tree | 0d9e081d40557c61b42657dc34f07bf9dc93f17b /src/corelib/kernel/qcoreapplication.cpp | |
parent | c2ad3b2ab704b751f2900729892099a13ef200a0 (diff) | |
parent | aaf765dfb797da6b72807fad61fd2a1d19187c0c (diff) | |
download | Qt-5ed526bea6331055941360e01024a1a1af57feed.zip Qt-5ed526bea6331055941360e01024a1a1af57feed.tar.gz Qt-5ed526bea6331055941360e01024a1a1af57feed.tar.bz2 |
Merge branch '4.5' of /home/dboddie/git/qt-45/ into 4.5
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index b3f9f1a..a23b2dd 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -377,6 +377,14 @@ QString qAppName() QLibrary) can be retrieved with libraryPaths() and manipulated by setLibraryPaths(), addLibraryPath(), and removeLibraryPath(). + On Unix/Linux Qt is configured to use the system local settings by + default. This can cause a conflict when using POSIX functions, for + instance, when converting between data types such as floats and + strings, since the notation may differ between locales. To get + around this problem call the POSIX function setlocale(LC_NUMERIC,"C") + right after initializing QApplication or QCoreApplication to reset + the locale that is used for number formatting to "C"-locale. + \sa QApplication, QAbstractEventDispatcher, QEventLoop, {Semaphores Example}, {Wait Conditions Example} */ |