Hello list!
Can I rely on having "en_US.UTF-8" inside a koji-build? Or in other words:
Is it allowed to do this in spec?
%build export LC_CTYPE="en_US.UTF-8" ...
Do I need to have BuildRequires on something providing UTF-8-locales?
Cheers, Björn
On Mon, Jun 3, 2013 at 5:27 AM, Björn Esser bjoern.esser@gmail.com wrote:
Hello list!
Can I rely on having "en_US.UTF-8" inside a koji-build? Or in other words:
Is it allowed to do this in spec?
%build export LC_CTYPE="en_US.UTF-8" ...
Do I need to have BuildRequires on something providing UTF-8-locales?
Generally I would consider it a bug if a package requires setting LC_*. Users come from many different countries and unfortunately, UTF-8 isn't standard in all of those :-(. Also, cron jobs get run using the C locale so code that can end up running there (all libraries for instance) could be broken.
If you're only having to set this for building the package, not for testing it at runtime, this might be okay... I'd say that you should definitely dive into the buildsystem/code, though, to make sure that there isn't a runtime requirement as well.
-Toshio
On 06/25/2013 09:57 AM, Toshio Kuratomi wrote:
On Mon, Jun 3, 2013 at 5:27 AM, Björn Esser bjoern.esser@gmail.com wrote:
Hello list!
Can I rely on having "en_US.UTF-8" inside a koji-build? Or in other words:
Is it allowed to do this in spec?
%build export LC_CTYPE="en_US.UTF-8" ...
Do I need to have BuildRequires on something providing UTF-8-locales?
Generally I would consider it a bug if a package requires setting LC_*. Users come from many different countries and unfortunately, UTF-8 isn't standard in all of those :-(. Also, cron jobs get run using the C locale so code that can end up running there (all libraries for instance) could be broken.
If you're only having to set this for building the package, not for testing it at runtime, this might be okay... I'd say that you should definitely dive into the buildsystem/code, though, to make sure that there isn't a runtime requirement as well.
-Toshio
packaging mailing list packaging@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/packaging
I've had issues compiling java code with UTF-8 source, and setting LANG was one workaround.
On 2013-06-27 10:44, Mattias Ellert wrote:
ons 2013-06-26 klockan 20:56 -0600 skrev Orion Poplawski:
I've had issues compiling java code with UTF-8 source, and setting LANG was one workaround.
Wouldn't using compiler flags be a better choice:
-Dproject.build.sourceEncoding=UTF-8
Submitting upstream build.xml etc fixes that take care of these things would be better.
packaging@lists.fedoraproject.org