From a6bc69d73fa37c6f506aa890e3814cfb251051c1 Mon Sep 17 00:00:00 2001 From: "James E. Stine" Date: Wed, 8 Nov 2023 23:57:59 -0600 Subject: [PATCH] Add encoding for utf-8 on wrapperGen.py to avoid issue with incorrect encoding on RHEL C-shell --- synthDC/scripts/wrapperGen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synthDC/scripts/wrapperGen.py b/synthDC/scripts/wrapperGen.py index 3a0984bc3..b570ad0c0 100755 --- a/synthDC/scripts/wrapperGen.py +++ b/synthDC/scripts/wrapperGen.py @@ -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) \ No newline at end of file +#print(buf)