You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have custom message definitions that contain UTF-8 encoded characters in the comments. When I try to filter topics from bagfiles that contain these messages, it fails with UnicodeDecodeError.
* Added failing test case for utf-8 encoded characters in comments
Addressing the issue described here: #94
* Workaround to satisfy failing test case (utf-8 in comments)
* open temporary file in non-binary write-only mode
* The default open mode is 'w+b' which requires
a bytes-like object in Python 3.
* Now we can write the full_text string without
encoding it first.
I have custom message definitions that contain UTF-8 encoded characters in the comments. When I try to filter topics from bagfiles that contain these messages, it fails with
UnicodeDecodeError
.I already described it here:
And linked to a related entry in the ROS Q&A:
On my machine I could work around this by removing the call to
.encode()
in the line highlighted in the Traceback:I don't know what other side effects this may produce (maybe with other file encodings of the message definition?), but so far it seems to work...
The text was updated successfully, but these errors were encountered: