beremiz

Runtime: fix startup when locale isn't defined.
py2compat
23 months ago, Edouard Tisserant
8fc8530b113f
Parents c13f5e92ce53
Children 9643f9d2527c
Runtime: fix startup when locale isn't defined.
--- a/Beremiz_service.py Tue Jul 09 11:46:19 2024 +0200
+++ b/Beremiz_service.py Wed Jul 10 11:07:53 2024 +0200
@@ -212,7 +212,7 @@
loc.AddCatalog(domain)
global default_locale
- default_locale = locale.getdefaultlocale()[1]
+ default_locale = locale.getdefaultlocale()[1] or "utf-8"
# sys.stdout.encoding = default_locale
# if Beremiz_service is started from Beremiz IDE