@@ -142,7 +142,7 @@ def add_children(json_obj, fort_obj):
142
142
os .path .dirname (os .path .abspath (__file__ )), "statements.json"
143
143
)
144
144
statements = {"var_def" : [], "int_stmnts" : []}
145
- with open (json_file , "r" ) as fid :
145
+ with open (json_file , "r" , encoding = "utf-8" ) as fid :
146
146
intrin_file = json .load (fid )
147
147
for key in statements :
148
148
for name , json_obj in sorted (intrin_file [key ].items ()):
@@ -153,7 +153,7 @@ def add_children(json_obj, fort_obj):
153
153
os .path .dirname (os .path .abspath (__file__ )), "keywords.json"
154
154
)
155
155
keywords = {"var_def" : [], "arg" : [], "type_mem" : [], "vis" : [], "param" : []}
156
- with open (json_file , "r" ) as fid :
156
+ with open (json_file , "r" , encoding = "utf-8" ) as fid :
157
157
intrin_file = json .load (fid )
158
158
for key in keywords :
159
159
for name , json_obj in sorted (intrin_file [key ].items ()):
@@ -164,7 +164,7 @@ def add_children(json_obj, fort_obj):
164
164
os .path .dirname (os .path .abspath (__file__ )), "intrinsic_funs.json"
165
165
)
166
166
int_funs = []
167
- with open (json_file , "r" ) as fid :
167
+ with open (json_file , "r" , encoding = "utf-8" ) as fid :
168
168
intrin_file = json .load (fid )
169
169
for name , json_obj in sorted (intrin_file .items ()):
170
170
int_funs .append (create_int_object (name , json_obj , json_obj ["type" ]))
@@ -175,7 +175,7 @@ def add_children(json_obj, fort_obj):
175
175
os .path .dirname (os .path .abspath (__file__ )), "intrinsic_mods.json"
176
176
)
177
177
int_mods = []
178
- with open (json_file , "r" ) as fid :
178
+ with open (json_file , "r" , encoding = "utf-8" ) as fid :
179
179
intrin_file = json .load (fid )
180
180
for key , json_obj in intrin_file .items ():
181
181
fort_obj = create_object (json_obj )
0 commit comments