Skip to content

Commit b563412

Browse files
committed
refactor: add utf-8 encoding to file open in debug_server_parser
1 parent 37451e0 commit b563412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortls/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def locate_config(root: str) -> str | None:
539539
config_exists = os.path.isfile(config_path)
540540
if config_exists:
541541
try:
542-
with open(config_path) as fhandle:
542+
with open(config_path, encoding="utf-8") as fhandle:
543543
config_dict = json.load(fhandle)
544544
pp_suffixes = config_dict.get("pp_suffixes", None)
545545
pp_defs = config_dict.get("pp_defs", {})

0 commit comments

Comments
 (0)