Skip to content

Commit c80f22e

Browse files
authored
Correct encoding error on Windows with units file extraction (#211)
1 parent 5a4ad9c commit c80f22e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gemd/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.18.4"
1+
__version__ = "1.18.5"

gemd/units/impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
def _deploy_default_files() -> str:
3131
"""Copy the units & constants file into a temporary directory."""
3232
units_path = Path(_TEMP_DIRECTORY.name) / "citrine_en.txt"
33-
units_path.write_text(read_text("gemd.units", "citrine_en.txt"))
33+
units_path.write_text(read_text("gemd.units", "citrine_en.txt"), encoding="utf-8")
3434

3535
constants_path = Path(_TEMP_DIRECTORY.name) / "constants_en.txt"
36-
constants_path.write_text(read_text("gemd.units", "constants_en.txt"))
36+
constants_path.write_text(read_text("gemd.units", "constants_en.txt"), encoding="utf-8")
3737

3838
return str(units_path)
3939

0 commit comments

Comments
 (0)