Kaydet (Commit) b96180cb authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: set en_US.UTF8 for the LibreOffice instance

Change-Id: If4726804c2b967582cbf1a4e816c1c7bee01aeeb
Reviewed-on: https://gerrit.libreoffice.org/38626Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 70715895
......@@ -26,7 +26,7 @@ gb_UITest_GDBTRACE := --gdb
gb_UITest__interactive := $(true)
endif
gb_UITest_COMMAND := $(gb_UITest_EXECUTABLE) $(SRCDIR)/uitest/test_main.py
gb_UITest_COMMAND := LIBO_LANG=en_US.UTF-8 $(gb_UITest_EXECUTABLE) $(SRCDIR)/uitest/test_main.py
.PHONY : $(call gb_UITest_get_clean_target,%)
$(call gb_UITest_get_clean_target,%) :
......
......@@ -8,6 +8,7 @@
import subprocess
import time
import uuid
import os
try:
import pyuno
......@@ -76,7 +77,14 @@ class OfficeConnection:
argv.insert(3, "--args")
argv[4] = argv[4].replace("soffice", "soffice.bin")
self.pro = subprocess.Popen(argv)
env = None
environ = dict(os.environ)
if 'LIBO_LANG' in environ:
env = environ
env['LC_ALL'] = environ['LIBO_LANG']
print(env)
self.pro = subprocess.Popen(argv, env=env)
return self.pro
def connect(self, socket):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment