mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-17 00:34:26 -05:00
fixed an issue with exiting midgame
This commit is contained in:
parent
463c333e48
commit
dc5efa2b47
3 changed files with 13 additions and 7 deletions
|
|
@ -16,9 +16,11 @@ import logging
|
|||
import time
|
||||
import sys
|
||||
import io
|
||||
import locale
|
||||
|
||||
# Reconfigure stdout to use UTF-8 encoding
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
# Apply UTF-8 fix only if needed
|
||||
if "utf" not in locale.getpreferredencoding().lower():
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
|
||||
from config_init import initialize_config, get_interface, init_cli_parser, merge_config
|
||||
from db_operations import initialize_database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue