File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
commitizen/changelog_formats Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def __init__(self, config: BaseConfig):
24
24
# Constructor needs to be redefined because `Protocol` prevent instantiation by default
25
25
# See: https://bugs.python.org/issue44807
26
26
self .config = config
27
+ self .encoding = self .config .settings ["encoding" ]
27
28
28
29
@property
29
30
def version_parser (self ) -> Pattern :
@@ -33,7 +34,7 @@ def get_metadata(self, filepath: str) -> Metadata:
33
34
if not os .path .isfile (filepath ):
34
35
return Metadata ()
35
36
36
- with open (filepath ) as changelog_file :
37
+ with open (filepath , encoding = self . encoding ) as changelog_file :
37
38
return self .get_metadata_from_file (changelog_file )
38
39
39
40
def get_metadata_from_file (self , file : IO [Any ]) -> Metadata :
You can’t perform that action at this time.
0 commit comments