From 2a845c450413e5b0a4d2dade14b012a1800f337a Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 14 May 2023 09:44:14 +1000 Subject: Replace CP-437 with ISO-8859-1 as neutral encoding as more common and standard. --- scripts/HeaderCheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/HeaderCheck.py') diff --git a/scripts/HeaderCheck.py b/scripts/HeaderCheck.py index 2c953bf30..1fdb92ff3 100644 --- a/scripts/HeaderCheck.py +++ b/scripts/HeaderCheck.py @@ -15,11 +15,11 @@ def HeaderFromIncludeLine(s): return s.strip()[1:].strip()[7:].strip() def ExtractHeaders(file): - with file.open(encoding="cp437") as infile: + with file.open(encoding="iso-8859-1") as infile: return [HeaderFromIncludeLine(h) for h in infile if IsHeader(h)] def ExtractWithPrefix(file, prefix): - with file.open(encoding="cp437") as infile: + with file.open(encoding="iso-8859-1") as infile: return [s.strip()[len(prefix):] for s in infile if s.startswith(prefix)] def ExcludeName(name, excludes): -- cgit v1.2.3