File: set_UTF8_locale

package info (click to toggle)
vmdb2 0.27%2Breally.0.26-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 704 kB
  • sloc: python: 2,365; sh: 207; makefile: 26
file content (13 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: vmdb2/vmdb/runcmd.py
===================================================================
--- vmdb2.orig/vmdb/runcmd.py
+++ vmdb2/vmdb/runcmd.py
@@ -46,7 +46,7 @@ def progress(msg):
 def runcmd(argv, **kwargs):
     progress("Exec: %r" % (argv,))
     env = kwargs.get("env", os.environ.copy())
-    env["LC_ALL"] = "C"
+    env["LC_ALL"] = "C.UTF8"
     kwargs["env"] = env
     kwargs["stdout"] = kwargs.get("stdout", subprocess.PIPE)
     kwargs["stderr"] = kwargs.get("stderr", subprocess.PIPE)