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

Fix locale issue if LC_ALL is unset #10

Merged
merged 4 commits into from
Jul 5, 2024
Merged

Fix locale issue if LC_ALL is unset #10

merged 4 commits into from
Jul 5, 2024

Conversation

lreiher
Copy link
Member

@lreiher lreiher commented Jul 5, 2024

Problem

  • Ubuntu 22
  • echo $LC_ALL prints nothing
  • docker-run gitlab.ika.rwth-aachen.de:5050/fb-fi/its-modules/monitoring/ros-monitoring cannot start RViz
    dockeruser@8fa8e9f1e306:/docker-ros/ws$ rviz2
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dockeruser'
    [INFO] [1718691638.738652173] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [1718691638.738745810] [rviz2]: OpenGl version: 4.5 (GLSL 4.5)
    terminate called after throwing an instance of 'std::runtime_error'
      what():  locale::facet::_S_create_c_locale name not valid
    Aborted (core dumped)
    

Reason

  • --env LC_ALL is added as part of docker-run
  • export LC_ALL=C fixes the problem inside the container

lreiher added 4 commits July 5, 2024 13:48
otherwise things like rviz will not start if LC_ALL is unset; C seems like a reasonable locale default
@lreiher lreiher merged commit c860e85 into main Jul 5, 2024
2 checks passed
@lreiher lreiher deleted the fix/locale branch July 5, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant