Blame SOURCES/0190-Fix-locale-issue-in-grub-setpassword-1294243.patch

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