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

open interface files with utf-8 encoding #390

Merged
merged 1 commit into from Jul 19, 2019

Conversation

dirk-thomas
Copy link
Member

Fixes #388.

Build Status

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
@dirk-thomas dirk-thomas added bug Something isn't working in review Waiting for review (Kanban column) labels Jul 18, 2019
@dirk-thomas dirk-thomas self-assigned this Jul 18, 2019
@dirk-thomas dirk-thomas requested a review from sloretz July 18, 2019 21:06
@@ -427,7 +427,7 @@ def __str__(self):
def parse_message_file(pkg_name, interface_filename):
basename = os.path.basename(interface_filename)
msg_name = os.path.splitext(basename)[0]
with open(interface_filename, 'r') as h:
with open(interface_filename, 'r', encoding='utf-8') as h:
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems fine to me. Just noting that this requires interface files to be utf-8, where they might have worked fine if they happened to be using the default system encoding before.

@dirk-thomas dirk-thomas merged commit 961dcda into master Jul 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the dirk-thomas/read-interface-files-utf8 branch July 19, 2019 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: 'charmap' codec can't decode byte 0x8f in position 156
2 participants