-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, 2017-06-01 at 17:56 +0200, Miro Hrončok wrote:
Hi Pythonistas.
Regarding our Python 3 C.UTF-8 locale coercing [1], aka PEP 538 [2].
As you probably know, we build RPM packages with the C locale. So
everytime we use python3 in the spec file, the coercing message is
shown. This can be more problematic than just spamming the build
logs,
see for example the related rpmlint bug [3][4].
I would prefer to fix mock once
which will fix not only python builds,
but others as well!
Our macros, such as %{python3_sitelib}, %{python3_version} etc. all
call
python3 and generate the warning. Should we "fix" our macros to set
the
LANG to C.UTF-8?
If we change the %{__python3} macro entirely, we might get rid of all
of
those warnings and we will workaround the fact that we build RPM
packages with the C locale. On the other hand the packager would not
be
able to set a desired locale because it will always be overwritten:
# The crazy test suite needs Czech locale
LANG=cs_CZ.utf8 %{__python3} -m pytest
Will become:
LANG=cs_CZ.utf8 LANG=C.utf8 /usr/bin/python3 -m pytest
So I would not do that.
But we can change all other macros in
/usr/lib/rpm/macros.d/macros.python3 to set the UTF-8 locale. Would
that
be wise? Desired?
Any thoughts?
[1]
https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
[2]
https://www.python.org/dev/peps/pep-0538/
[3]
https://bugzilla.redhat.com/show_bug.cgi?id=1457786
[4]
https://bugzilla.redhat.com/show_bug.cgi?id=1436345
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel(a)lists.fedoraproject.org
To unsubscribe send an email to python-devel-leave(a)lists.fedoraprojec
t.org
- --
- -Igor Gnatenko
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEhLFO09aHZVqO+CM6aVcUvRu8X0wFAlkwbP0ACgkQaVcUvRu8
X0xZnw/9EGT6r12y4wcITPH+Y8SYCkcKVDsIIofhbZLFP1f+bAjYVjnVWccn5Nih
uFcXbHXcHp+jji+gAxrG44tdZS212aMIZ57cqEIx7xlG/qf5z1Vx+ZOMDhrP61lx
l+MAvoCI0fGdVGX5R7qZX1Vun6K6E93viAyjSTn+liCeJr9F0PxJsVC8StNvBk2c
2ZER6lgAQ0Nck+Y7K4oN7l09uHuBmxMCDcOXGBHcl5M3Mwh65WZncY162h4nQc2V
X7+Gyq83kx1Ya/LIOuG2rM74QcaaQ4IaoI2FBVj8DWFdgF/goYFOFfd3HwqVPVEZ
TJ8KV3XlnkaMqE9ysvKw3FZErUAxkqVy18OlkdEVFv7AQCx/eZqfTGrgurqCUYZQ
FB7ZjYjdNSyu5RFiOKXJWbUTgfHKe6BugVsvcajbpW493A5iOpnurMEuEL0w5ucp
KRnMvmEKq69iJ+NqXcGJRBIYN28RjAoxoydXcV5heVkMab4HJoLOhp0HdEsteFiD
l/+YcHG7HkERiKG6AxjJRjz42v8rgpP14fRnAQb+yKVfqQ5u5Ld0jsEIs+ST1Pwl
aHqoC2QEYPsL1rDEnOiWG2J61giUd0/pXJMMhE9Ki5yWtgsImnpqqHXAPn/accRR
5EjYFDFhP5PH3BkaowCjgzehjUBpHQwcCn8qHmqWN5AZoG3WLb0=
=K+2G
-----END PGP SIGNATURE-----