35f33ea
From d2f552900d87b62ca0dbc740902d561bc32f32be Mon Sep 17 00:00:00 2001
9bc6276
From: Robert Marshall <rmarshall@redhat.com>
9bc6276
Date: Fri, 29 Jan 2016 17:34:02 -0500
4a7cefb
Subject: [PATCH 77/90] Fix locale issue in grub-setpassword (#1294243)
9bc6276
9bc6276
A shell substitution was expecting non-translated output to grab the
9bc6276
hashed password and put it in the user.cfg file. Modified code to force
9bc6276
the generic C locale when this particular piece of code is run.
9bc6276
9bc6276
Resolves: rhbz#1294243
9bc6276
---
9bc6276
 util/grub-setpassword.in | 2 +-
9bc6276
 1 file changed, 1 insertion(+), 1 deletion(-)
9bc6276
9bc6276
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
9bc6276
index dd76f00..2923f43 100644
9bc6276
--- a/util/grub-setpassword.in
9bc6276
+++ b/util/grub-setpassword.in
9bc6276
@@ -105,7 +105,7 @@ getpass() {
9bc6276
     P1="$1" && shift
9bc6276
 
9bc6276
     ( echo ${P0} ; echo ${P1} ) | \
9bc6276
-        ${grub_mkpasswd} | \
9bc6276
+        LC_ALL=C ${grub_mkpasswd} | \
9bc6276
         grep -v '[eE]nter password:' | \
9bc6276
         sed -e "s/PBKDF2 hash of your password is //"
9bc6276
 }
9bc6276
-- 
4a7cefb
2.9.3
9bc6276