From 038a014b4948eb800a70d169abe37253adae1fbb Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Thu, 5 Oct 2017 10:44:27 -0600 Subject: tests: Fix doc validator script Script was intolerant of unicode characters that now show up in the spec. Change-Id: I125f12139eec395ffc8ae61e92de1428fa2ac0c6 --- scripts/vk_validation_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vk_validation_stats.py b/scripts/vk_validation_stats.py index 36346b3e..58c5c0b4 100755 --- a/scripts/vk_validation_stats.py +++ b/scripts/vk_validation_stats.py @@ -103,7 +103,7 @@ class ValidationDatabase: """Read a database file into internal data structures, format of each line is """ #db_dict = {} # This is a simple db of just enum->errormsg, the same as is created from spec #max_id = 0 - with open(self.db_file, "r") as infile: + with open(self.db_file, "r", encoding="utf8") as infile: for line in infile: line = line.strip() if line.startswith('#') or '' == line: -- cgit v1.2.3