Commit 3f4904f9 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

setlocale to avoid locale related numeric issues.

Refer to http://www.paraview.org/pipermail/paraview/2009-August/013278.html
thread for details.
parent b1b908c4
......@@ -43,6 +43,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <QPlastiqueStyle>
#endif
#include <clocale>
int main(int argc, char* argv[])
{
#ifdef Q_WS_X11
......@@ -69,6 +71,7 @@ int main(int argc, char* argv[])
QApplication::setOrganizationName("@BPC_ORGANIZATION@");
QApplication qtapp(argc, argv);
setlocale(LC_NUMERIC,"C");
pq@BPC_NAME@Initializer pvInitializer;
if (!pvInitializer.Initialize(argc, argv))
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment