mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-22 10:10:02 +01:00
set encoding to utf-8 for stdout, needed for Windows
This commit is contained in:
@@ -132,6 +132,8 @@ def sys_main() -> None:
|
|||||||
def main(sys_args: list[str]) -> None:
|
def main(sys_args: list[str]) -> None:
|
||||||
# allow to use sys.stdout with with (avoid closing)
|
# allow to use sys.stdout with with (avoid closing)
|
||||||
sys.stdout.close = lambda: None # type: ignore
|
sys.stdout.close = lambda: None # type: ignore
|
||||||
|
# set encoding to utf-8, needed for Windows
|
||||||
|
sys.stdout.reconfigure(encoding='utf-8') # type: ignore
|
||||||
|
|
||||||
args = parse_args(sys_args)
|
args = parse_args(sys_args)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user