Skip to content

Fix current encoding errors in syslog test#8095

Merged
hickeng merged 1 commit intovmware:masterfrom
zjs:topic/syslog
Jun 27, 2018
Merged

Fix current encoding errors in syslog test#8095
hickeng merged 1 commit intovmware:masterfrom
zjs:topic/syslog

Conversation

@zjs
Copy link
Member

@zjs zjs commented Jun 26, 2018

Use default encoding settings when reading syslog data over SSH to avoid errors when attempting to read some latin1-encoded characters (e.g., mu or u with umlaut) as utf-8.

This reverts 58effdf (#7977).

Additionally, remove retry of the cat operation; it seems like one of the least likely steps of this process to fail, and code history does not reveal any reason it was added.

This reverts 18841ed (#6841).

[specific ci=6-15-Syslog]


Additional work exists here. For example, using cat over ssh may not be the best way to read the contents of the file.

@zjs zjs self-assigned this Jun 26, 2018
@zjs zjs requested a review from a team as a code owner June 26, 2018 22:04
Copy link
Contributor

@hickeng hickeng left a comment

Choose a reason for hiding this comment

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

Please express why in the commit message.

Use default encoding settings when reading syslog data over SSH to
avoid errors when attempting to read some latin1-encoded characters
(e.g., mu or u with umlaut) as utf-8.

This reverts 58effdf (vmware#7977).

Additionally, remove retry of the cat operation; it seems like one of
the least likely steps of this process to fail, and code history does
not reveal any reason it was added.

This reverts 18841ed (vmware#6841).
@zjs zjs changed the title [WIP] Fix encoding issue in syslog test Fix current encoding errors in syslog test Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants