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 asyncio
import logging import logging
import signal import signal
...@@ -104,6 +105,7 @@ def exception_message(log_lines, exc_info): ...@@ -104,6 +105,7 @@ def exception_message(log_lines, exc_info):
def main(): def main():
# activate ctrl-c interrupt # activate ctrl-c interrupt
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
signal.signal(signal.SIGINT, signal.SIG_DFL) signal.signal(signal.SIGINT, signal.SIG_DFL)
sakia = QApplication(sys.argv) sakia = QApplication(sys.argv)
......
...@@ -5,6 +5,7 @@ import sqlite3 ...@@ -5,6 +5,7 @@ import sqlite3
import mirage import mirage
import sys import sys
import os import os
import locale
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src'))) sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')))
...@@ -20,6 +21,7 @@ from sakia.services import DocumentsService ...@@ -20,6 +21,7 @@ from sakia.services import DocumentsService
_application_ = [] _application_ = []
locale.setlocale(locale.LC_ALL, 'C.UTF-8')
@pytest.yield_fixture @pytest.yield_fixture
def event_loop(): def event_loop():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment