]> granicus.if.org Git - python/commitdiff
Fix "make tags": set locale to C to call sort
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Aug 2016 11:58:12 +0000 (13:58 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Aug 2016 11:58:12 +0000 (13:58 +0200)
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.

Makefile.pre.in

index 2101e70f351aeb505a67f70884a280138eca1510..105481aff46fc699364f445336fb1775ee1553c4 100644 (file)
@@ -1566,7 +1566,7 @@ tags::
        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::