-
Notifications
You must be signed in to change notification settings - Fork 67
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
math::parseFloat is locale-dependent #215
Labels
Comments
I'm centralizing the information and issues related to locale independent conversions in gazebosim/gz-common#233. PRs are very welcome :) |
Closing in favor of gazebosim/gz-common#233. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
parseFloat
relies onstd::stod
which is locale-dependent.When using my locale LC_NUMERIC=es_AR.UTF-8; the Collada importer in ign-common/graphics/src/ColladaLoader.cc will end up reading garbage. Hence this little sensor:
will end up looking like this:
This bug is related to gazebosim/gz-common#120 and gazebosim/gz-rendering#365
Description
Steps to reproduce
LC_ALL=es_AR.UTF-8 ign gazebo near_clip.sdf
using near_clip.sdfWorkaround
Launching gazebo with LC_ALL=C fixes the issue.
Output
The text was updated successfully, but these errors were encountered: