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

if data is not ascii, we'll convert them to unicode #31

Closed
wants to merge 1 commit into from

Conversation

k-okada
Copy link

@k-okada k-okada commented Nov 9, 2014

Current implementation transfers unicode string to str string during serialization and deserialization
https://github.com/ros/ros_comm/pull/530/files#diff-6907356c07d5398105854fc29f684d12R228
https://github.com/ros/ros_comm/pull/530/files#diff-6907356c07d5398105854fc29f684d12R232

a = s.call(u'ほげ')
a.str == 'ほげ' # Not u'ほげ'

I think this is current specification, but just in case this is bug, here is the fix for that.
If we accept this patch, we have to fix test code ros/ros_comm#530

@dirk-thomas
Copy link
Member

This patch is containing parts of #26. Without having it tested I assume that this patch is incomplete.

Anyway since requires extensive testing I might not get to it in the near future. For the same reason #26 was not merged until now.

@dirk-thomas
Copy link
Member

I will close this for now due to the age / inactivity and because the upcoming ROS Noetic being the first ROS distro officially targeting Python 3. If the problem still exists in Noetic please open a new ticket with steps to reproduce.

@k-okada k-okada deleted the message_convert_to_unicode branch July 25, 2022 05:34
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.

2 participants