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

6b3c76
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
6b3c76
Subject: [PATCH 190/261] 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
6b3c76
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
 }
6b3c76
-- 
6b3c76
2.13.5
6b3c76