While tesing import of DICOM images, I found that one computer with Ubuntu 9.04 64bit read certain DICOM files upside-down and without spacing information. (A couple of other computers with identical OS did not have this problem)
After checking all kind of differences in ITK build options, I found that one difference between the systems was the locale. The computer with the error had a German locale, while all others were set to US English.
Changing the users's locale to US proved to be a workaround for the problem.
To allow users to keep their locale, I want to encapsulate DICOM reading in mitk::DataTreeNodeFactory in a block that
- remembers the current locale
- changes the locale to "C"
- reads DICOM
- resets the locale to the original setting
This seemed to be a good workaround for the current DICOM reader implementation's problem.
MITK tests and manual testing that is going on currently will show if this fix has side effects.