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

112 - Replace UTF-8 quotes with ASCII quotes #114

Merged

Conversation

adamlm
Copy link
Contributor

@adamlm adamlm commented Jun 25, 2021

PR Details

Description

Fixes issue where the quotation marks in LaneAttributesTrackedVehicle.msg were UTF-8 characters. The UTF-8 characters resulted in reading issues on systems with a non-UTF-8 locale. The UTF-8 quotes have been replaced with ASCII quotes, which resolved the issue.

Related Issue

Closes #112

Motivation and Context

The comment block in the LaneAttributesTrackedVehicle.msg file erroneously used UTF-8 quotation markings instead of ASCII quotes. This caused problems when a system (Docker container) using the POSIX locale tried to read the file. When the file was opened to generate the corresponding ROS message implementation, the build would crash because the quote marks could not be decoded.

How Has This Been Tested?

j2735_msgs package was built on a system using the en_US.UTF-8 locale and a system using the POSIX locale. Both systems built the package successfully after the fix.

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
    CARMA Contributing Guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

The previous quote marks were UTF-8 characters for left quote and right quote,
resulting in the file being UTF-8 encoded. This causes file reading issues on
environments with a non-UTF-8 locale (e.g., a POSIX locale). Replacing the
UTF-8 quote marks with ASCII versions fixes the issue.
Copy link
Contributor

@msmcconnell msmcconnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting find. This looks good to me

@msmcconnell msmcconnell merged commit 7383c1c into usdot-fhwa-stol:develop Jun 28, 2021
@adamlm adamlm mentioned this pull request Jul 12, 2021
9 tasks
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.

UTF-8 characters in LaneAttributesTrackedVehicle.msg file
2 participants