[opensuse-buildservice] Building rpm with a unicode locale
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? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Todd Rme <toddrme2178@gmail.com> 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@suse.de 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@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, Aug 27, 2014 at 11:45 AM, Andreas Schwab <schwab@suse.de> wrote:
export LC_ALL=en_US.utf8
That seems to work, thanks. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Todd Rme