Skip to content

Commit f854847

Browse files
committed
Ensured dataset JSON opens with UTF-8 encoding on all platforms
1 parent 0b6609d commit f854847

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'computer_languages.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'computer_languages.json'), encoding='utf-8') as file:
44
computer_languages = json.load(file)
55

66
sys.modules[__name__] = computer_languages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'data_languages.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'data_languages.json'), encoding='utf-8') as file:
44
data_languages = json.load(file)
55

66
sys.modules[__name__] = data_languages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'latin_locales.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'latin_locales.json'), encoding='utf-8') as file:
44
latin_locales = json.load(file)
55

66
sys.modules[__name__] = latin_locales
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'markup_languages.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'markup_languages.json'), encoding='utf-8') as file:
44
markup_languages = json.load(file)
55

66
sys.modules[__name__] = markup_languages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'non_latin_locales.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'non_latin_locales.json'), encoding='utf-8') as file:
44
non_latin_locales = json.load(file)
55

66
sys.modules[__name__] = non_latin_locales
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'programming_languages.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'programming_languages.json'), encoding='utf-8') as file:
44
programming_languages = json.load(file)
55

66
sys.modules[__name__] = programming_languages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'project_markers.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'project_markers.json'), encoding='utf-8') as file:
44
project_markers = json.load(file)
55

66
sys.modules[__name__] = project_markers
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json, os, sys
22

3-
with open(os.path.join(os.path.dirname(__file__), 'prose_languages.json')) as file:
3+
with open(os.path.join(os.path.dirname(__file__), 'prose_languages.json'), encoding='utf-8') as file:
44
prose_languages = json.load(file)
55

66
sys.modules[__name__] = prose_languages

0 commit comments

Comments
 (0)