[CentOS] rpmbuild: definition of the %prep script

Mon Apr 18 16:52:56 UTC 2011
Joseph L. Casale <jcasale at activenetwerx.com>

>Actually I'm trying to figure out where these lines originate from

I see

>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.86989
>+ umask 022
>+ cd /home/user/rpmbuild/BUILD
>+ export LANG
>The setting of LANG messes up my build, which relies on Utf8.

So export this in the build environments shell, afaik if its previously
it will not redefine it.

export LANG=en_US.UTF-8
rpmbuild <...>

Try that out.