From a1dbb1f955409410f9402f9f257482a03bb5d5d6 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Mon, 5 Sep 2011 17:15:45 +0200 Subject: [PATCH] [BUG] Use POSIX local before call to GDCM - Force the use of POSIX local to read dicom headers with gdcm --- vv/vvQDicomSeriesSelector.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/vv/vvQDicomSeriesSelector.cxx b/vv/vvQDicomSeriesSelector.cxx index c1f8215..48397bc 100644 --- a/vv/vvQDicomSeriesSelector.cxx +++ b/vv/vvQDicomSeriesSelector.cxx @@ -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()) -- 2.47.1