public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: Drop explicit locale setting
@ 2026-08-01 11:43 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-01 11:43 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-py
            Branch : pr7
            Commit : 0fd5f8de67cf07dfa5989502f2b3794e0c7d54c9
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
            Date   : 2018-11-18T22:04:35+01:00
            Stats  : +6/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-py/c/0fd5f8de67cf07dfa5989502f2b3794e0c7d54c9?branch=pr7

            Log:
            Drop explicit locale setting

Python3 now sets unicode locale automatically, this workaround
should not be necessary anymore. For python2, let's use the lighter locale.

---
diff --git a/python-py.spec b/python-py.spec
index 58d464a..e1f91e7 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -19,7 +19,7 @@
 
 Name:           python-%{srcname}
 Version:        1.7.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
 License:        MIT and Public Domain
 #               main package: MIT, except: doc/style.css: Public Domain
@@ -162,7 +162,7 @@ popd
 %if %{with python2}
 pushd python2
 PYTHONPATH=%{buildroot}%{python2_sitelib} \
-LC_ALL="en_US.UTF-8" \
+LC_ALL=C.UTF-8 \
 py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
 popd
 %endif # with python2
@@ -170,7 +170,6 @@ popd
 %if %{with python3}
 pushd python3
 PYTHONPATH=%{buildroot}%{python3_sitelib} \
-LC_ALL="en_US.UTF-8" \
 py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
 popd
 %endif # with python3
@@ -205,6 +204,10 @@ popd
 
 
 %changelog
+* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.0-2
+- Drop explicit locale setting for python3, use C.UTF-8 for python2
+  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
+
 * Sun Nov 11 2018 Thomas Moschny <thomas.moschny@gmx.de> - 1.7.0-1
 - Update to 1.7.0.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-01 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 11:43 [rpms/python-py] pr7: Drop explicit locale setting 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox