From d9a98dc1cdcfb185e659c0d02f74ae6739b340db Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 12 Sep 2012 21:38:48 +0100 Subject: [PATCH] lib: guestfs_disk_format: Set LC_ALL=C instead of LANG=C. LC_ALL takes precedence over LANG. See: http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html --- src/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info.c b/src/info.c index 9185cecc2..76f1f4e01 100644 --- a/src/info.c +++ b/src/info.c @@ -190,7 +190,7 @@ run_qemu_img_info (guestfs_h *g, const char *filename, dup2 (fd[1], 1); close (fd[1]); - setenv ("LANG", "C", 1); + setenv ("LC_ALL", "C", 1); /* XXX stderr to event log */