]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/getroot.c (exec_pipe): Ensure that the child is not localised.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 10 Mar 2012 12:05:21 +0000 (13:05 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 10 Mar 2012 12:05:21 +0000 (13:05 +0100)
ChangeLog
util/getroot.c

index 114f1a4e7fc628ad5b860bda8bb00bd43c877575..841e0e6b152e695e1ab971145b99475f0098a445 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/getroot.c (exec_pipe): Ensure that the child is not localised.
+
 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-install.in: Check for themes/starfield/theme.txt and not
index 2389fc9a0bc5b990800cddb2d22f85a086ac85ef..b814dabb38728b74de07f4761753032a5f592adc 100644 (file)
@@ -237,6 +237,8 @@ exec_pipe (char **argv, int *fd)
   else if (mdadm_pid == 0)
     {
       /* Child.  */
+      /* Ensure child is not localised.  */
+      setenv ("LC_ALL", "C", 1);
 
       close (mdadm_pipe[0]);
       dup2 (mdadm_pipe[1], STDOUT_FILENO);