MNT Use a different function for obtaining locale information

This commit is contained in:
Renato Alves
2021-04-13 20:34:41 +02:00
parent 25001565ab
commit 08cf2a9522

View File

@@ -1010,7 +1010,7 @@ def setup_logging(args) -> None:
def identify_system_locale() -> str:
encoding: Optional[str] = locale.getlocale()[1]
encoding: Optional[str] = locale.getpreferredencoding()
if encoding is None:
LOG.error(