You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Something during XML loading (re)sets locale settings #3203
I read about QApplications of QT resetting the locale but could not find where it would be constructed in that tool.
Could also be Xerces.
I did not find any other setlocale usage of our library.
Until we find the true reason: @grosenberger or @hroest can you have a look at OpenSwathFeatureXMLtoTSV and find an alternative to sprintf so that the tool does not depend on the locale?
Maybe you can set the locale to German on the command line (e.g. Linux) and see if the tests pass. You know the expected TSV format a bit better.
Not sure why this is showing up now on the build machines (QT5? threadsafety of the locale?) but as you see, I remember having the problem before on my Mac.
I made it to minor. Easy workaround is not using C functions to print out stuff.
Please use our toString methods for DataTypes. I'll keep it open since it could be solved better.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
timosachsenberg commentedon Feb 12, 2018
hmm just an idea:
OpenMS/src/openms/source/SYSTEM/UpdateCheck.cpp
Line 137 in 876dbc3
This constructs a QCoreApplication which might set the local
jpfeuffer commentedon Feb 13, 2018
Hmm I was checking. But the tests correctly have a "-test" flag which should deactivate UpdateCheck right?
jpfeuffer commentedon Feb 13, 2018
Until we find the true reason: @grosenberger or @hroest can you have a look at OpenSwathFeatureXMLtoTSV and find an alternative to sprintf so that the tool does not depend on the locale?
Maybe you can set the locale to German on the command line (e.g. Linux) and see if the tests pass. You know the expected TSV format a bit better.
jpfeuffer commentedon Feb 13, 2018
Not sure why this is showing up now on the build machines (QT5? threadsafety of the locale?) but as you see, I remember having the problem before on my Mac.
hroest commentedon Feb 16, 2018
hmm interesting, it uses a
,to separate instead of a.. We currently use sprintf in a few places:jpfeuffer commentedon Mar 12, 2018
I made it to minor. Easy workaround is not using C functions to print out stuff.
Please use our toString methods for DataTypes. I'll keep it open since it could be solved better.
stale commentedon Apr 30, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
github-actions commentedon Mar 9, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.