Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/cmake_consistency_check.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/build_files/cmake/cmake_consistency_check.py b/build_files/cmake/cmake_consistency_check.py
index 302ea8561d1..7c47c1d8bfd 100644
--- a/build_files/cmake/cmake_consistency_check.py
+++ b/build_files/cmake/cmake_consistency_check.py
@@ -192,3 +192,16 @@ for hf in sorted(source_list(base, is_c_header)):
if not is_ignore(hf):
if hf not in global_h:
print("missing_h: ", hf)
+
+# test encoding
+import traceback
+for files in (global_c, global_h):
+ for f in sorted(files):
+ i = 1
+ try:
+ for l in open(f, "r", encoding="utf8"):
+ i += 1
+ except:
+ print("Non utf8: %s:%d" % (f, i))
+ if i > 1:
+ traceback.print_exc()