Mailinglist Archive: opensuse-buildservice (116 mails)

< Previous Next >
[opensuse-buildservice] Re: Building rpm with a unicode locale
Todd Rme <toddrme2178@xxxxxxxxx> writes:

As far as I can find, RPMs are always built using the C locale, which
is non-unicode. This breaks a lot of python packages, which use the
locale of the environment, and thus fail when it gets, for example,
utf-8 in a readme file (which is extremely common). Is there any way
to change the locale that rpm builds in to a utf8-based locale?

Just execute 'export LC_ALL=en_US.utf8' in the %build section.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References