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

i18n: use fallback mode if terminal does not support UTF-8 #484

Closed
wants to merge 1 commit into from

Conversation

mluscon
Copy link
Contributor

@mluscon mluscon commented May 5, 2016

No description provided.

@jsilhan
Copy link
Contributor

jsilhan commented May 6, 2016

@mluscon, does it fix https://bugzilla.redhat.com/show_bug.cgi?id=1279204 too? If so can you mark it properly as a duplicate, please?

try:
self.stream.write(s)
except UnicodeEncodeError:
bytes = s.encode(self.stream.encoding, 'backslashreplace')
Copy link
Contributor

Choose a reason for hiding this comment

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

actually it does variable shadowing. Can you rename it, please?

@mluscon
Copy link
Contributor Author

mluscon commented May 6, 2016

jenkins, retest this please

@mluscon
Copy link
Contributor Author

mluscon commented May 6, 2016

merged

@mluscon mluscon closed this May 6, 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