From e3b0812f462efcf26fe57e1b40c54993d9e4fc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AA=E3=83=A1=E3=82=AF=E3=82=BF=20=E3=82=A2?= =?UTF-8?q?=E3=83=AC=E3=83=8D=E3=82=AF=E3=83=88?= Date: Tue, 29 Oct 2024 01:11:51 +0300 Subject: [PATCH] Update cli.py: enforce UTF-8 for config_path --- organize/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/organize/cli.py b/organize/cli.py index 903494d2..e4f268c9 100644 --- a/organize/cli.py +++ b/organize/cli.py @@ -99,7 +99,7 @@ def from_stdin(cls) -> "ConfigWithPath": def by_name_or_path(cls, name_or_path: Optional[str]) -> "ConfigWithPath": config_path = find_config(name_or_path=name_or_path) return cls( - config=config_path.read_text(), + config=config_path.read_text(encoding="utf-8"), config_path=config_path, )