From: Vivien Delmon Date: Mon, 5 Sep 2011 15:15:45 +0000 (+0200) Subject: [BUG] Use POSIX local before call to GDCM X-Git-Tag: v1.3.0~236^2~4 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a1dbb1f955409410f9402f9f257482a03bb5d5d6;hp=cff1bb0cd9b0850379e20c0594ccd511a3a38133;p=clitk.git [BUG] Use POSIX local before call to GDCM - Force the use of POSIX local to read dicom headers with gdcm --- 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())