]> Creatis software - clitk.git/commitdiff
[BUG] Use POSIX local before call to GDCM
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 5 Sep 2011 15:15:45 +0000 (17:15 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 5 Sep 2011 15:15:45 +0000 (17:15 +0200)
- Force the use of POSIX local to read dicom headers with gdcm

vv/vvQDicomSeriesSelector.cxx

index c1f821516be03f05f697cf00925bbf5040f5d5aa..48397bc191994b5ba91f0a8d7b4c2249e06f0c1e 100644 (file)
@@ -315,6 +315,7 @@ QString vvDicomSeriesSelector::MakeDicomInfo(std::string & s, const gdcm::Reader
 #else
 QString vvDicomSeriesSelector::MakeDicomInfo(std::string & s, gdcm::File *header)
 {
+  setlocale(LC_NUMERIC, "POSIX");
   QString n = QString("%1").arg(mListOfSeriesFilenames[s]->size());
   QString size = QString("%1x%2x%3")
                  .arg(header->GetXSize())