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

Make io more locale invariant #5699

Merged
merged 1 commit into from
May 22, 2023

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented May 2, 2023

  • Expand test: write with English locale, then read with German locale (previously the test only wrote with German, read with English)
  • In copyStringValue used by PCD reader: clear error flags after replacing content of istringstream, otherwise the !(is >> value) test always fails and atof is used (which uses the global locale)
  • Minor additional improvements

Fixes #5694

- Expand test: write with English locale, then read with German locale (previously the test only wrote with German, read with English)
- In `copyStringValue` used by PCD reader: clear error flags after replacing content of istringstream, otherwise the `!(is >> value)` test always fails and `atof` is used (which uses the global locale)
@mvieth mvieth added module: io changelog: fix Meta-information for changelog generation labels May 2, 2023
@larshg larshg added this to the pcl-1.14.0 milestone May 10, 2023
@mvieth mvieth merged commit cac9db8 into PointCloudLibrary:master May 22, 2023
@mvieth mvieth deleted the better_locale_invariance branch May 22, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[IO] pcl::io::loadPCDFile fails to load point clouds correctly after QApplication is initialized
2 participants