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

[reporting] html_report skips plugins .. with nonASCII #839

Closed

Conversation

pmoravec
Copy link
Contributor

[reporting] html_report skips plugins that collected file with
nonASCII character in their name

Converting all html report strings to unicode with utf-8 encoding.

Does not work ideally on py2 where the report does not skip a plugin
but breaks encoding of most nonASCII characters.

Resolves: #835

Signed-off-by: Pavel Moravec pmoravec@redhat.com

[reporting] html_report skips plugins that collected file with
nonASCII character in their name

Converting all html report strings to unicode with utf-8 encoding.

Does not work ideally on py2 where the report does not skip a plugin
but breaks encoding of most nonASCII characters.

Resolves: sosreport#835

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
@pmoravec
Copy link
Contributor Author

The patch works completely well on python3. On python2, when collecting /etc/network_přílišžluťoučkýkůnpělódy, sos.html contains:

<li><a href="../etc/network_p�ílišžluťou�kýkůnp�lódy">/etc/network_p�ílišžluťou�kýkůnp�lódy</a></li>

That is due to the fact srcpath/dstpath/linksto are (only) in this case of type str but with bytes/unicode content already. Havent found a way of identifying that case.

@bmr-cymru
Copy link
Member

That is due to the fact srcpath/dstpath/linksto are (only) in this case of type str but with bytes/unicode
content already. Havent found a way of identifying that case.

Seems a separate bug (outside reporting)

@bmr-cymru
Copy link
Member

Merged as commit 5e4991f.

@bmr-cymru bmr-cymru closed this Jun 29, 2016
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.

None yet

2 participants