-
Notifications
You must be signed in to change notification settings - Fork 145
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 encoding handling when writing to stdout and log files #280
Conversation
af6ac3a
to
0754d76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic makes sense, but I haven't tried running it. @hidmic I guess you might want to take a look before we merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works on CI then it's ok for me, but @hidmic may still want to see it since he setup the logging stuff originally and not me.
The latest state of this patch passed the test execution without encode/decode exceptions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
3d44899
to
649ac7a
Compare
* fix output encoding of logs to be utf-8 Signed-off-by: Dirk Thomas <[email protected]> * ensure to write to stdout log handler in a supported encoding Signed-off-by: Dirk Thomas <[email protected]> * replace instead of strict Signed-off-by: Dirk Thomas <[email protected]> * replace not needed during decode Signed-off-by: Dirk Thomas <[email protected]> * pass preferred encoding to decode() Signed-off-by: Dirk Thomas <[email protected]> * consistent API Signed-off-by: Dirk Thomas <[email protected]> * fix style Signed-off-by: Dirk Thomas <[email protected]>
Related to ros2/rosidl#388.