Skip to content

Commit

Permalink
refactor: add utf-8 encoding to file open in debug_server_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Apr 25, 2024
1 parent 37451e0 commit b563412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fortls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def locate_config(root: str) -> str | None:
config_exists = os.path.isfile(config_path)
if config_exists:
try:
with open(config_path) as fhandle:
with open(config_path, encoding="utf-8") as fhandle:
config_dict = json.load(fhandle)
pp_suffixes = config_dict.get("pp_suffixes", None)
pp_defs = config_dict.get("pp_defs", {})
Expand Down

0 comments on commit b563412

Please sign in to comment.