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

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