Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes broken test when built on non-english locale #210

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Fixes broken test when built on non-english locale #210

merged 1 commit into from
Jul 12, 2018

Conversation

dl1ely
Copy link

@dl1ely dl1ely commented Jul 5, 2018

FileUtilTest tests the output of FileUtil.formatFileSize() (which
depends on the locale of the machine the test is run on) against a
literal string (which does not depend on the locale).

This will fail on non-english locales. This fix uses the decimal
separator and grouping separator of the machine running the test and
should make the test independent of the locale it is executed on.

This PR is the exact solution already pointed out in the comments of
#197

Fixes #197 and #198.

FileUtilTest tests the output of FileUtil.formatFileSize() (which
depends on the locale of the machine the test is run on) against a
literal string (which does not depend on the locale).

This will fail on non-english locales. This fix uses the decimal
separator and grouping separator of the machine running the test and
should make the test independent of the locale it is executed on.

This PR is the exact solution already pointed out in the comments of

Fixes #197 and #198.
@rhubner
Copy link
Contributor

rhubner commented Jul 6, 2018

Hello @dl1ely ,

thanks for your pull request. It looks really great. At the moment I'm on holiday, I will look on it when I get back next week.

Radek

@rhubner rhubner merged commit ad996ec into digital-preservation:master Jul 12, 2018
@jcharlet jcharlet added the bug label Feb 12, 2020
@jcharlet jcharlet added this to the 6.5 milestone Feb 12, 2020
@jcharlet jcharlet added test and removed bug labels Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Localisation problem in number format make mvn install fail
3 participants