From 3bbae4cdc6487dd2110a8ee7536ba83e42deab4d Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Fri, 27 Nov 2020 10:28:27 +0100 Subject: [PATCH 1/2] Avoid using translations Workaround for #130 --- .gitignore | 1 + OMPython/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 70598b201..8fd2ddfd7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ .idea/ .vs/ .DS_Store +.vscode/ diff --git a/OMPython/__init__.py b/OMPython/__init__.py index 864de8be5..cd1c5b2f8 100755 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -555,7 +555,7 @@ def __init__(self, readonly=False, serverFlag='--interactive=corba', timeout = 1 self._timeout = timeout self._create_omc_log_file("port") - self._set_omc_command([serverFlag, "+c={0}".format(self._random_string)]) + self._set_omc_command([serverFlag, "--locale=C", "+c={0}".format(self._random_string)]) # start up omc executable, which is waiting for the CORBA connection self._start_omc_process(timeout) @@ -698,6 +698,7 @@ def __init__(self, readonly=False, timeout = 10.00, docker = None, dockerContain # set omc executable path and args self._set_omc_command([ "--interactive=zmq", + "--locale=C", "-z={0}".format(self._random_string) ]) # start up omc executable, which is waiting for the ZMQ connection From 4503db55177d862ffde9993447beca2b4925eb40 Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Fri, 27 Nov 2020 11:37:50 +0100 Subject: [PATCH 2/2] Don't fix locale for CORBA --- OMPython/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMPython/__init__.py b/OMPython/__init__.py index cd1c5b2f8..31c7da1df 100755 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -555,7 +555,7 @@ def __init__(self, readonly=False, serverFlag='--interactive=corba', timeout = 1 self._timeout = timeout self._create_omc_log_file("port") - self._set_omc_command([serverFlag, "--locale=C", "+c={0}".format(self._random_string)]) + self._set_omc_command([serverFlag, "+c={0}".format(self._random_string)]) # start up omc executable, which is waiting for the CORBA connection self._start_omc_process(timeout)