Mercurial > emacs
changeset 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 | 58fa0c36a31d |
children | 9ce2dfd4d7ee |
files | lib-src/etags.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
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;