@@ -37,7 +37,7 @@ def main(argv=None):
3737 for filename in args .filenames :
3838 recipe_list = None
3939 if filename .endswith (".txt" ):
40- with open (filename , "r" ) as openfile :
40+ with open (filename , "r" , encoding = "utf-8" ) as openfile :
4141 recipe_list = [
4242 line
4343 for line in openfile .read ().splitlines ()
@@ -54,7 +54,7 @@ def main(argv=None):
5454 # AutoPkg does not support YAML recipe lists, but AutoPkg users
5555 # may have developed custom tooling for this.
5656 try :
57- with open (filename , "r" ) as openfile :
57+ with open (filename , "r" , encoding = "utf-8" ) as openfile :
5858 recipe_list = yaml .load (openfile )
5959 except Exception as err :
6060 print ("{}: yaml parsing error: {}" .format (filename , err ))
@@ -63,7 +63,7 @@ def main(argv=None):
6363 # AutoPkg does not support JSON recipe lists, but AutoPkg users
6464 # may have developed custom tooling for this.
6565 try :
66- with open (filename , "r" ) as openfile :
66+ with open (filename , "r" , encoding = "utf-8" ) as openfile :
6767 recipe_list = json .load (openfile )
6868 except Exception as err :
6969 print ("{}: json parsing error: {}" .format (filename , err ))
0 commit comments