[reggen] Prefer explicit utf-8 encoding
This fixes the chip level nightly breakage.
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/util/reggen/ip_block.py b/util/reggen/ip_block.py
index a0d31f7..3e8544d 100644
--- a/util/reggen/ip_block.py
+++ b/util/reggen/ip_block.py
@@ -281,7 +281,7 @@
def from_path(path: str,
param_defaults: List[Tuple[str, str]]) -> 'IpBlock':
'''Load an IpBlock from an hjson description in a file at path'''
- with open(path, 'r') as handle:
+ with open(path, 'r', encoding='utf-8') as handle:
return IpBlock.from_text(handle.read(), param_defaults,
'file at {!r}'.format(path))