nsxiv2d34c4b
Set LC_COLLATE for -r file list sorting
Fixes issue #293.
+4 −1
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20171023 | |
| 1 | + | VERSION = git-20171024 | |
| 2 | 2 | ||
| 3 | 3 | srcdir = . | |
| 4 | 4 | VPATH = $(srcdir) | |
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | #include <fcntl.h> | |
| 26 | 26 | #include <unistd.h> | |
| 27 | 27 | #include <errno.h> | |
| 28 | + | #include <locale.h> | |
| 28 | 29 | #include <signal.h> | |
| 29 | 30 | #include <sys/select.h> | |
| 30 | 31 | #include <sys/stat.h> | |
| @@ -813,6 +814,8 @@ int main(int argc, char **argv) | |||
| 813 | 814 | ||
| 814 | 815 | signal(SIGPIPE, SIG_IGN); | |
| 815 | 816 | ||
| 817 | + | setlocale(LC_COLLATE, ""); | |
| 818 | + | ||
| 816 | 819 | parse_options(argc, argv); | |
| 817 | 820 | ||
| 818 | 821 | if (options->clean_cache) { | |