Write copyright output files as utf8
[alexxy/gromacs.git] / admin / copyright.py
index e54d602851034a93132373b1ebb92738d7e8d610..65b1fbec87e89e517c563106fb2b06c5520be7ae 100755 (executable)
@@ -3,7 +3,7 @@
 # This file is part of the GROMACS molecular simulation package.
 #
 # Copyright (c) 2013,2014,2015,2016,2018 by the GROMACS development team.
-# Copyright (c) 2019,2020, by the GROMACS development team, led by
+# Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -434,7 +434,7 @@ def main():
             if filename == '-':
                 sys.stdout.write(output)
             else:
-                with open(filename, 'w') as outputfile:
+                with open(filename, 'w', encoding='utf-8') as outputfile:
                     outputfile.write(output)
 
 if __name__ == "__main__":