Skip to content

Commit

Permalink
fix: Fixed windows build error (#3211)
Browse files Browse the repository at this point in the history
Closes #3208
Closes #3204
  • Loading branch information
surajkumar-sk authored and joeyparrish committed Mar 15, 2021
1 parent 5e8ba28 commit b73d230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/generateLocalizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import json
import os
import sys

import io
import shakaBuildHelpers


Expand Down Expand Up @@ -248,7 +248,7 @@ def main(args):
combined_localizations = {}
for locale in args.locales:
path = os.path.join(args.source, locale + '.json')
with open(path, 'r') as f:
with io.open(path, 'r', encoding='utf8') as f:
combined_localizations[locale] = json.load(f)

doc = GenerateLocalizations(combined_localizations, args.class_name)
Expand Down

0 comments on commit b73d230

Please sign in to comment.