diff --git a/src/sakia/constants.py b/src/sakia/constants.py index c1ad2befb4a8f09d84f1644608f495c4ad9ac098..d5c59565d934ded0ecd9004201e8acaa76bd92c0 100644 --- a/src/sakia/constants.py +++ b/src/sakia/constants.py @@ -3,8 +3,8 @@ import yaml MAX_CONFIRMATIONS = 6 -with open(os.path.join(os.path.dirname(__file__), "root_servers.yml"), 'r') as stream: +with open(os.path.join(os.path.dirname(__file__), "root_servers.yml"), 'r', encoding="utf-8") as stream: ROOT_SERVERS = yaml.load(stream) -with open(os.path.join(os.path.dirname(__file__), "g1_licence.html"), 'r') as stream: +with open(os.path.join(os.path.dirname(__file__), "g1_licence.html"), 'r', encoding="utf-8") as stream: G1_LICENCE = stream.read() diff --git a/src/sakia/main.py b/src/sakia/main.py index 36eaf101554974a4cbea0d06d89dddb6694f5b93..187e850fc6f0340824d6245a16f77c6de0512e38 100755 --- a/src/sakia/main.py +++ b/src/sakia/main.py @@ -105,7 +105,6 @@ def exception_message(log_lines, exc_info): def main(): #Â activate ctrl-c interrupt - locale.setlocale(locale.LC_ALL, 'C.UTF-8') signal.signal(signal.SIGINT, signal.SIG_DFL) sakia = QApplication(sys.argv) diff --git a/tests/conftest.py b/tests/conftest.py index 484755bd8fc253cbfd5e62022b73bdef5d166bcd..c3df0702163faf08387d043ef02c2477a6c7eb85 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,8 +21,6 @@ from sakia.services import DocumentsService _application_ = [] -locale.setlocale(locale.LC_ALL, 'C.UTF-8') - @pytest.yield_fixture def event_loop(): qapplication = get_application()