Package: meshlab
Version: 1.3.0a+dfsg1-1

---------- Forwarded message ----------
From: Luka Frelih <l...@ljudmila.org>
Date: Fri, Apr 15, 2011 at 3:48 AM
Subject: meshlab PLY import in linux
To: cign...@gmail.com, tpiko...@gmail.com


hello Paolo, Teemu!

I've been bit recently by the bug in meshlab, unable to open PLY files
in linux, and after realizing it works on windows managed to discover
the cause - parsing decimal numbers in locale-aware mode - and fix it.

Please find my comments and fix at
http://sourceforge.net/tracker/index.php?func=detail&aid=3187111&group_id=149444&atid=774731

I've also attached the diff, created to the debian package source,
which i've used for building. Hope this is convenient enough - it's a
really small change, perhaps you'll just find a better place to stick
it...

best,
LF
diff --git a/meshlab/src/meshlab/main.cpp b/meshlab/src/meshlab/main.cpp
index 6a74830..1fd1c18 100644
--- a/meshlab/src/meshlab/main.cpp
+++ b/meshlab/src/meshlab/main.cpp
@@ -25,12 +25,16 @@
 #include <QMessageBox>
 #include "mainwindow.h"
 
+using namespace std;
+
 int main(int argc, char *argv[])
 {
   QApplication app(argc, argv);
   QLocale::setDefault(QLocale::C);
   QCoreApplication::setOrganizationName("VCG");
   QCoreApplication::setApplicationName("MeshLab");
+
+  std::setlocale(LC_NUMERIC, "C");
 	
 		if(argc>1)	
 		{

Reply via email to