[Python-checkins] cpython: Fix "make tags": set locale to C to call sort

victor.stinner python-checkins at python.org
Wed Aug 17 07:59:21 EDT 2016


https://hg.python.org/cpython/rev/cbe87a9a0cf2
changeset:   102725:cbe87a9a0cf2
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Aug 17 13:58:12 2016 +0200
summary:
  Fix "make tags": set locale to C to call sort

vim expects that the tags file is sorted using english collation, so it fails
if the locale is french for example. Use LC_ALL=C to force english sorting
order. Issue #27726.

files:
  Makefile.pre.in |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Makefile.pre.in b/Makefile.pre.in
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1566,7 +1566,7 @@
 	ctags -w Include/*.h; \
 	for i in $(SRCDIRS); do ctags -w -a $$i/*.[ch]; \
 	done; \
-	sort -o tags tags
+	LC_ALL=C sort -o tags tags
 
 # Create a tags file for GNU Emacs
 TAGS::

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list