From: DarkContact Date: Tue, 19 Nov 2019 17:28:12 +0000 (+0300) Subject: fix compile on windows (with code page 1251) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=689ffe5a2579348bcd466af2211bbd1f92664594;p=blog.git fix compile on windows (with code page 1251) --- diff --git a/css/postprocess.py b/css/postprocess.py index 491f6757..4017f34e 100755 --- a/css/postprocess.py +++ b/css/postprocess.py @@ -134,7 +134,7 @@ def postprocess(files, process_imports, out_file): else: out.write(line) - with open(out_file, mode='w') as out: + with open(out_file, mode='w', encoding='utf8') as out: # Put a helper comment and a license blob on top out.write("""/* Generated using `./postprocess.py {}`. Do not edit. */