Skip to content

Commit 74d49fc

Browse files
committed
fix python file encoding error on Windows
1 parent ed2c4e4 commit 74d49fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/utils/generate_libcxx_cppm_in.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
def write_file(module):
16-
with open(libcxx_root / "modules" / f"{module}.cppm.in", "w") as module_cpp_in:
16+
with open(libcxx_root / "modules" / f"{module}.cppm.in", "w", encoding='utf-8') as module_cpp_in:
1717
module_cpp_in.write(
1818
"""\
1919
// -*- C++ -*-

0 commit comments

Comments
 (0)