Force grass locale

Former-commit-id: 184ffbdfc6
pull/1161/head
Piero Toffanin 2020-09-17 13:30:59 -04:00
rodzic 51769fe711
commit 5d170571d2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -95,7 +95,7 @@ class GrassContext:
log.ODM_INFO("Executing grass script from {}: {} --tmp-location {} --exec bash script.sh".format(self.get_cwd(), self.grass_binary, self.location))
env = os.environ.copy()
env["GRASS_ADDON_PATH"] = env.get("GRASS_ADDON_PATH", "") + os.path.abspath(os.path.join("opendm/grass/addons"))
env["LC_ALL"] = locale.getdefaultlocale()[1] or "C.UTF-8"
env["LC_ALL"] = "C.UTF-8"
filename = os.path.join(self.get_cwd(), 'output.log')
with open(filename, 'wb') as writer, open(filename, 'rb', 1) as reader: