From d3a71916aada89fcc6797c60a05f6a304cea1dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toralf=20F=C3=B6rster?= Date: Wed, 18 Jun 2014 22:12:31 +0200 Subject: [PATCH] htmlreport: Use source_encoding to open XML files --- htmlreport/cppcheck-htmlreport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index a1b0e9644..56a6be927 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -296,7 +296,7 @@ if __name__ == '__main__': source_filename = os.path.join(source_dir, filename) try: - with io.open(source_filename, 'r') as input_file: + with io.open(source_filename, 'r', encoding=options.source_encoding) as input_file: content = input_file.read() except IOError: sys.stderr.write("ERROR: Source file '%s' not found.\n" %