Skip to content

Change encoding when attempting to cat syslog file#7977

Merged
mhagen-vmware merged 1 commit intomasterfrom
feature/fix-syslog-test
May 22, 2018
Merged

Change encoding when attempting to cat syslog file#7977
mhagen-vmware merged 1 commit intomasterfrom
feature/fix-syslog-test

Conversation

@mhagen-vmware
Copy link
Contributor

[skip unit]
[specific ci=6-15-Syslog]

This will hopefully eliminate this problem:

UnicodeDecodeError: 'utf8' codec can't decode byte 0xb5 in position 1787713: invalid start byte

Copy link
Contributor

@rajanashok rajanashok left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@mdharamadas1 mdharamadas1 left a comment

Choose a reason for hiding this comment

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

lgtm

@mhagen-vmware mhagen-vmware merged commit 58effdf into master May 22, 2018
@mhagen-vmware mhagen-vmware deleted the feature/fix-syslog-test branch May 22, 2018 15:32
zjs added a commit to zjs/vic that referenced this pull request Jun 27, 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 (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).
hickeng pushed a commit that referenced this pull request Jun 27, 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).
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