Skip to content
Snippets Groups Projects
Commit 8b0ce409 authored by inso's avatar inso
Browse files

set locale

parent 996e1c81
No related branches found
No related tags found
No related merge requests found
import locale
import asyncio
import logging
import signal
......@@ -104,6 +105,7 @@ 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)
......
......@@ -5,6 +5,7 @@ import sqlite3
import mirage
import sys
import os
import locale
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')))
......@@ -20,6 +21,7 @@ from sakia.services import DocumentsService
_application_ = []
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
@pytest.yield_fixture
def event_loop():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment