diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-04-01 08:45:59 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-04-01 09:41:08 (GMT) |
commit | 9969f5383711454389435370ae71b6f19d3b2255 (patch) | |
tree | 73bcb6629048579d94422b5e44a9d9f9aac636eb /src/corelib/kernel | |
parent | 84741443a8f7971e6b715f15f71f7a1a8ef05353 (diff) | |
download | Qt-9969f5383711454389435370ae71b6f19d3b2255.zip Qt-9969f5383711454389435370ae71b6f19d3b2255.tar.gz Qt-9969f5383711454389435370ae71b6f19d3b2255.tar.bz2 |
Subject: Added platform spec. note about type convertion
Details: Added a note to the description about using POSIX functions for converting between data types such as floats and strings
Task-number: 244600
Reviewed-by: Denis Dzyubenko
Reviewed-by: Geir Vattekar
Diffstat (limited to 'src/corelib/kernel')
-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} */ |