Add encoding for utf-8 on wrapperGen.py to avoid issue with incorrect encoding on RHEL C-shell

This commit is contained in:
James E. Stine 2023-11-08 23:57:59 -06:00
parent 41f4c634b0
commit a6bc69d73f

View File

@ -21,7 +21,7 @@ args=parser.parse_args()
fin_path = glob.glob(f"{os.getenv('WALLY')}/src/**/{args.DESIGN}.sv",recursive=True)[0]
fin = open(fin_path, "r")
fin = open(fin_path, "r", encoding='utf-8')
lines = fin.readlines()
@ -70,4 +70,4 @@ fout.write(buf)
fin.close()
fout.close()
#print(buf)
#print(buf)