chiark / gitweb /
fix encoding
authorDarkContact <DarkContact@mail.ru>
Tue, 19 Nov 2019 19:09:03 +0000 (22:09 +0300)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 25 Nov 2019 16:50:37 +0000 (17:50 +0100)
css/postprocess.py

index 4017f34ec4d3e6d1f1b11fa9c022e626ef8fb88d..5aee41a31ee9ce8196a59c51518253b96402e3af 100755 (executable)
@@ -164,14 +164,14 @@ def postprocess(files, process_imports, out_file):
 """.format(' '.join(sys.argv[1:])))
 
         # Parse the top-level file
-        with open(files[0]) as f: parse(f)
+        with open(files[0], encoding='utf8') as f: parse(f)
 
         # Now open the imported files and parse them as well. Not doing any
         # recursive parsing.
         for i, file in enumerate(imported_files + files[1:]):
             if i: out.write('\n')
 
-            with open(file) as f: parse(f)
+            with open(file, encoding='utf8') as f: parse(f)
 
     return 0