From: Panu Matilainen Date: Thu, 22 Nov 2012 10:22:06 +0000 (+0200) Subject: Avoid locale issues in rpm2cpio.sh (RhBug:878363) X-Git-Tag: rpm-4.11.0-beta1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37ceae439ede3a64e9d010f1082897acd3621e56;p=platform%2Fupstream%2Frpm.git Avoid locale issues in rpm2cpio.sh (RhBug:878363) - In gawk >= 4.0.x printf() "adjusts" things according to current locale, but we need the data as it is. Forcing C locale prevents gawk from getting funny ideas about character conversions... (cherry picked from commit c0e95f1cedefd6d7522ef2cf7a2ada7c83821596) --- diff --git a/scripts/rpm2cpio.sh b/scripts/rpm2cpio.sh index 57c47bb..cb93ead 100755 --- a/scripts/rpm2cpio.sh +++ b/scripts/rpm2cpio.sh @@ -1,5 +1,8 @@ #!/bin/sh +# Prevent gawk >= 4.0.x from getting funny ideas wrt UTF in printf() +LANG=C + pkg=$1 if [ "$pkg" = "" -o ! -e "$pkg" ]; then echo "no package supplied" 1>&2