Page MenuHomePhabricator

Pointset loading localization problem
Closed, ResolvedPublic

Description

With QmitkPointListWidget, pointset can only be loaded in integer. This error is only in Linux.

Event Timeline

The problem is, that vtkPointSetXMLParser can't load pointset in german format.

First Idea: overwrite the method ParseScalarType in vtkPointSetXMLParser, in order to handle the locale information correctly.

New Idea: overload the methods InitializeParser() and CleanupParser() of the class vtkXMLParser in the subclass vtkPointSetXMLParser and added the locale information there.

[SVN revision 21465]
FIX (#2439): mitPointSetReader and mitkPointSetWriter can handle pointset with different location format now.

Reopening this: the committed fix does not compile on Windows. I deactivated the test to keep the nightyl dartclient results a little greener.

[SVN revision 21483]
COMP (#2439): changed variable type from int to const int to remove compile errors in windows

[SVN revision 21484]
COMP (#2439): used getline() instead read() for reading a stream to remove compile errors in windows

[SVN revision 27683]
FIX (#2439): Don't treat missing German locale as error

As discussed in todays MITK meeting, the absence of German
locales should not lead to a test failure. External users
of MITK with only their native locale installed should still
be able to run the tests successfully.

However, internally people should install at least one
German locale so that the test makes sense.