forked from gem5/gem5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: Explicitly decode/encode in utf-8.
The default encoding for python 2 is ascii which can't handle some characters in, for instance, people's names which have accented letters. This change explicitly selects the utf-8 encoding which pacifies python and is mostly equivalent except in these rare cases. In python 3, the default encoding is utf-8 to begin with, and it's no longer possible to change it. In this case, explicitly selecting the encoding is redundant but harmless. When we support only python 3, then this change can be reverted. Thanks to Lakin Smith for proposing a related solution and pointing out some information that led to this one. Change-Id: I99bd59063c77edd712954ffe90d7de320ade49ea Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33575 Maintainer: Gabe Black <[email protected]> Tested-by: kokoro <[email protected]> Reviewed-by: Lakin Smith <[email protected]> Reviewed-by: Jason Lowe-Power <[email protected]>
- Loading branch information
1 parent
94000ae
commit 52f392b
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters