Mercurial > emacs
diff lib-src/etags.c @ 75037:baea8fa9d2eb
(main): Pass the -u option to sort in ctags mode.
| author | Francesco Potort? <pot@gnu.org> |
|---|---|
| date | Tue, 02 Jan 2007 11:28:13 +0000 |
| parents | e7e8a2a0d0a9 |
| children | 7578f6d4b8c4 |
line wrap: on
line diff
--- a/lib-src/etags.c Tue Jan 02 11:04:57 2007 +0000 +++ b/lib-src/etags.c Tue Jan 02 11:28:13 2007 +0000 @@ -1460,8 +1460,11 @@ 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;
