summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>2007-01-02 11:28:13 +0000
committerFrancesco Potortì <pot@gnu.org>2007-01-02 11:28:13 +0000
commitacbada90418d816b9aa99ea3a5254ef1524dbb45 (patch)
tree3afb8a6f31ba7d4b99c235912d48b0ff0d631148 /lib-src
parent6191205d0e54cde3092ded7b32dca8f8dca67be0 (diff)
downloademacs-acbada90418d816b9aa99ea3a5254ef1524dbb45.tar.gz
(main): Pass the -u option to sort in ctags mode.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index bab09d77bac..00c4d0cc22e 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1460,8 +1460,11 @@ main (argc, argv)
if (CTAGS)
if (append_to_tagfile || update)
{
- char cmd[2*BUFSIZ+10];
- sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
+ char cmd[2*BUFSIZ+20];
+ /* Maybe these should be used:
+ setenv ("LC_COLLATE", "C", 1);
+ setenv ("LC_ALL", "C", 1); */
+ sprintf (cmd, "sort -u -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile);
exit (system (cmd));
}
return EXIT_SUCCESS;