diff options
| author | Francesco Potortì | 2007-01-02 11:28:13 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2007-01-02 11:28:13 +0000 |
| commit | 660222c758a96d6d1783b6664fd36e5b75d332f2 (patch) | |
| tree | 6534ca39fc1cdf1cee6bfa41017d60f0850acd45 /lib-src | |
| parent | c0e4af8a520ffb69d001edd0449d9b0c2f9e13bc (diff) | |
| download | emacs-660222c758a96d6d1783b6664fd36e5b75d332f2.tar.gz emacs-660222c758a96d6d1783b6664fd36e5b75d332f2.zip | |
(main): Pass the -u option to sort in ctags mode.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 7 |
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) | |||
| 1460 | if (CTAGS) | 1460 | if (CTAGS) |
| 1461 | if (append_to_tagfile || update) | 1461 | if (append_to_tagfile || update) |
| 1462 | { | 1462 | { |
| 1463 | char cmd[2*BUFSIZ+10]; | 1463 | char cmd[2*BUFSIZ+20]; |
| 1464 | sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile); | 1464 | /* Maybe these should be used: |
| 1465 | setenv ("LC_COLLATE", "C", 1); | ||
| 1466 | setenv ("LC_ALL", "C", 1); */ | ||
| 1467 | sprintf (cmd, "sort -u -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile); | ||
| 1465 | exit (system (cmd)); | 1468 | exit (system (cmd)); |
| 1466 | } | 1469 | } |
| 1467 | return EXIT_SUCCESS; | 1470 | return EXIT_SUCCESS; |