File bsc1059171-Enforce-en_US.UTF-8.patch of Package cluster-glue.8576
commit 609cc3866108464ee3f47ff4aeb47e01db31fee1
Author: Kristoffer Grönlund <krig@koru.se>
Date: Tue Sep 19 10:54:43 2017 +0200
Fix: stonith:external/ec2: Enforce en_US.UTF-8 locale when invoking aws client (bsc#1059171)
diff --git a/lib/plugins/stonith/external/ec2 b/lib/plugins/stonith/external/ec2
index b3a15f98..4798b3e5 100755
--- a/lib/plugins/stonith/external/ec2
+++ b/lib/plugins/stonith/external/ec2
@@ -59,6 +59,12 @@ sleep_time="1"
: ${ec2_tag=${ec2_tag_default}}
+# Always invoke aws command with UTF-8 locale
+# to avoid issues when the tag contains non-ASCII
+# characters (bsc#1059171)
+LC_ALL=en_US.UTF-8
+export LC_ALL
+
function usage()
{
cat <<EOF