6b2dd0
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
0ac23e
From: Robert Marshall <rmarshall@redhat.com>
bc092b
Date: Fri, 29 Jan 2016 16:56:11 -0500
31cddd
Subject: [PATCH] Fix locale issue in grub-setpassword (#1294243)
0ac23e
0ac23e
A shell substitution was expecting non-translated output to grab the
0ac23e
hashed password and put it in the user.cfg file. Modified code to force
0ac23e
the generic C locale when this particular piece of code is run.
0ac23e
0ac23e
Resolves: rhbz#1294243
0ac23e
---
0ac23e
 util/grub-setpassword.in | 2 +-
0ac23e
 1 file changed, 1 insertion(+), 1 deletion(-)
0ac23e
0ac23e
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
ec4acb
index c8c0fa4199d..d7924af5192 100644
0ac23e
--- a/util/grub-setpassword.in
0ac23e
+++ b/util/grub-setpassword.in
bc092b
@@ -104,7 +104,7 @@ getpass() {
0ac23e
     P1="$1" && shift
0ac23e
 
0ac23e
     ( echo ${P0} ; echo ${P1} ) | \
0ac23e
-        ${grub_mkpasswd} | \
0ac23e
+        LC_ALL=C ${grub_mkpasswd} | \
0ac23e
         grep -v '[eE]nter password:' | \
0ac23e
         sed -e "s/PBKDF2 hash of your password is //"
0ac23e
 }