Skip to content

Commit e2fd506

Browse files
authored
fix: Broken encoding on windows (#133)
Fixes #131
1 parent b900b0f commit e2fd506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_stubgen/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def write_module(
2121
else:
2222
module_file = to / f"{module.name}.pyi"
2323

24-
with open(module_file, "w") as f:
24+
with open(module_file, "w", encoding="utf-8") as f:
2525
f.writelines(line + "\n" for line in printer.print_module(module))
2626

2727
for sub_module in module.sub_modules:

0 commit comments

Comments
 (0)