Blame SOURCES/cu-Fix-issue-LP-1928167-growpart-doesn-t-work-when-LANG.patch

e9e782
From 3fc71ad0d38a3205ad8a790769353b67f32dccff Mon Sep 17 00:00:00 2001
e9e782
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
e9e782
Date: Thu, 10 Jun 2021 17:04:49 +0200
e9e782
Subject: [PATCH] Fix issue LP: #1928167 growpart doesn't work when
e9e782
 LANG=cs_CZ.UTF-8
e9e782
e9e782
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
e9e782
RH-MergeRequest: 3: Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
e9e782
RH-Commit: [1/1] e77ca8febb4171201c6c75f9420c4744ab321024
e9e782
RH-Bugzilla: 1885992
e9e782
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
e9e782
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
e9e782
e9e782
commit 03aa9974e7eb438b798fe95afc7cf4efe72ea73a
e9e782
Author: Amy Chen <66719270+xiachen-rh@users.noreply.github.com>
e9e782
Date:   Wed May 12 13:03:17 2021 +0800
e9e782
e9e782
    Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
e9e782
e9e782
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
e9e782
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
e9e782
---
e9e782
 bin/growpart | 2 +-
e9e782
 1 file changed, 1 insertion(+), 1 deletion(-)
e9e782
e9e782
diff --git a/bin/growpart b/bin/growpart
e9e782
index e815e4e..66a6dd2 100755
e9e782
--- a/bin/growpart
e9e782
+++ b/bin/growpart
e9e782
@@ -181,7 +181,7 @@ get_sfdisk_version() {
e9e782
 	local out oifs="$IFS" ver=""
e9e782
 	[ -n "$SFDISK_VERSION" ] && return 0
e9e782
 	# expected output: sfdisk from util-linux 2.25.2
e9e782
-	out=$(sfdisk --version) ||
e9e782
+	out=$(LANG=C sfdisk --version) ||
e9e782
 		{ error "failed to get sfdisk version"; return 1; }
e9e782
 	set -- $out
e9e782
 	ver=$4
e9e782
-- 
e9e782
2.27.0
e9e782