Skip to content

Commit cf0ac6a

Browse files
committed
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.
1 parent 9c4bfa6 commit cf0ac6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ tags::
15661566
ctags -w Include/*.h; \
15671567
for i in $(SRCDIRS); do ctags -w -a $$i/*.[ch]; \
15681568
done; \
1569-
sort -o tags tags
1569+
LC_ALL=C sort -o tags tags
15701570

15711571
# Create a tags file for GNU Emacs
15721572
TAGS::

0 commit comments

Comments
 (0)