Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-01-06 23:26:49 +0100
committerGitHub <noreply@github.com>2022-01-06 23:26:49 +0100
commita8862e9b2420cb1e3919288db624fae676b7e1c3 (patch)
tree833d0b1bd0acc7a0c8c0ef443f5d8bcd410ca5d3 /archinstall/lib/general.py
parente32cf71ae7dacbf9674262705cb2e8e1a5a2d206 (diff)
Define an standard locale for all the commands executed (#827)
* Define an standard locale for all the commands executed inside the application * Allow LC_ALL to be overriden during call * flake8 corrections
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 96c9d50c..f69242c6 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -188,7 +188,8 @@ class SysCommandWorker:
self.cmd = cmd
self.callbacks = callbacks
self.peak_output = peak_output
- self.environment_vars = environment_vars
+ # define the standard locale for command outputs. For now the C ascii one. Can be overriden
+ self.environment_vars = {'LC_ALL':'C' , **environment_vars}
self.logfile = logfile
self.working_directory = working_directory
@@ -368,7 +369,7 @@ class SysCommand:
peak_output :Optional[bool] = False,
environment_vars :Optional[Dict[str, Any]] = None,
working_directory :Optional[str] = './'):
-
+
_callbacks = {}
if callbacks:
for hook, func in callbacks.items():