From 8c0478fafb6ff0e8366f887e583637649013a215 Mon Sep 17 00:00:00 2001 From: Benjamin Sigonneau Date: Tue, 1 Jun 2021 23:01:10 +0200 Subject: [PATCH] Fix locale --- balises.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/balises.py b/balises.py index 9e28ff4..7874b48 100755 --- a/balises.py +++ b/balises.py @@ -11,6 +11,12 @@ import os from peewee import * from bottle import hook, request, route, run, view +# Set the locale for all categories to the user’s default setting (eg. LANG +# environment variable) +import locale +locale.setlocale(locale.LC_ALL, '') + + # ------------------------------------------------------------ conf = ConfigParser() conf.read(os.path.dirname(__file__) + '/balises.ini')