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):
2424 # Constructor needs to be redefined because `Protocol` prevent instantiation by default
2525 # See: https://bugs.python.org/issue44807
2626 self .config = config
27+ self .encoding = self .config .settings ["encoding" ]
2728
2829 @property
2930 def version_parser (self ) -> Pattern :
@@ -33,7 +34,7 @@ def get_metadata(self, filepath: str) -> Metadata:
3334 if not os .path .isfile (filepath ):
3435 return Metadata ()
3536
36- with open (filepath ) as changelog_file :
37+ with open (filepath , encoding = self . encoding ) as changelog_file :
3738 return self .get_metadata_from_file (changelog_file )
3839
3940 def get_metadata_from_file (self , file : IO [Any ]) -> Metadata :
You can’t perform that action at this time.
0 commit comments