From d646c9c2bfeeab6d635f197d362d43c2137af5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20JEAN?= Date: Fri, 22 Feb 2019 16:58:24 +0100 Subject: [PATCH] tools: Fix crash when template contains unicode characters --- tools/boilerplate/recipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/boilerplate/recipe.py b/tools/boilerplate/recipe.py index 864160e9fc..1d1939cc4d 100644 --- a/tools/boilerplate/recipe.py +++ b/tools/boilerplate/recipe.py @@ -36,7 +36,7 @@ 'BOILERPLATE_PATH', os.path.realpath(os.path.join(os.path.dirname(__file__), 'boilerplate_data'))) -TEMPLATES = TemplateLookup(directories=[BOILERPLATE_PATH]) +TEMPLATES = TemplateLookup(directories=[BOILERPLATE_PATH], input_encoding='utf-8') def write(target, contents): -- GitLab