From: Francesco Potortì Date: Tue, 2 Jan 2007 11:28:13 +0000 (+0000) Subject: (main): Pass the -u option to sort in ctags mode. X-Git-Tag: emacs-pretest-22.0.93~299 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=660222c758a96d6d1783b6664fd36e5b75d332f2;p=emacs.git (main): Pass the -u option to sort in ctags mode. --- 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;