support for creating project files in utf8 paths (was defaulting to ascii and throwing errors)

This commit is contained in:
Campbell Barton
2011-11-16 03:44:08 +00:00
parent 683e6faf81
commit 9d31c99c26
2 changed files with 4 additions and 4 deletions

View File

@@ -186,7 +186,7 @@ def cmake_advanced_info():
def cmake_cache_var(var):
cache_file = open(join(CMAKE_DIR, "CMakeCache.txt"))
cache_file = open(join(CMAKE_DIR, "CMakeCache.txt"), encoding='utf-8')
lines = [l_strip for l in cache_file for l_strip in (l.strip(),) if l_strip if not l_strip.startswith("//") if not l_strip.startswith("#")]
cache_file.close()