Skip to content

Commit

Permalink
[Bug] Hunting - Add UTF-8 Encoding for all Read and Write Operations (e…
Browse files Browse the repository at this point in the history
…lastic#3886)

* adding utf-8 flags

* reverted open() to read_text with encoding flag

* changed ticks

* changed ticks
  • Loading branch information
terrancedejesus authored Jul 11, 2024
1 parent 361e97a commit bd345d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hunting/generate_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def load_all_toml(base_path: Path) -> List[tuple[Hunt, Path]]:
"""Load all TOML files from the directory and return a list of Hunt configurations and their paths."""
hunts = []
for toml_file in base_path.rglob("*.toml"):
hunt_config = load_toml(toml_file.read_text())
hunt_config = load_toml(toml_file.read_text(encoding="utf-8"))
hunts.append((hunt_config, toml_file))
return hunts

Expand Down

0 comments on commit bd345d4

Please sign in to comment.