[gyb] Ignore filesystem locale and enforce UTF-8

This commit is contained in:
Ryan Lovelett
2016-01-05 20:39:24 -05:00
parent fc32a94281
commit 97b98b193d
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ class GraphemeClusterBreakPropertyTable(UnicodeProperty):
self.symbolic_values[v] = k
# Load the data file.
with codecs.open(grapheme_break_property_file_name, encoding=sys.getfilesystemencoding(), errors='strict') as f:
with codecs.open(grapheme_break_property_file_name, encoding='utf-8', errors='strict') as f:
for line in f:
# Strip comments.
line = re.sub('#.*', '', line)