Set LC_COLLATE for -r file list sorting

Fixes issue #293.
This commit is contained in:
Bert Münnich 2017-10-24 21:43:36 +02:00
parent 96445c3268
commit 2d34c4b9bf
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,4 @@
VERSION = git-20171023 VERSION = git-20171024
srcdir = . srcdir = .
VPATH = $(srcdir) VPATH = $(srcdir)

3
main.c
View file

@ -25,6 +25,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <locale.h>
#include <signal.h> #include <signal.h>
#include <sys/select.h> #include <sys/select.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -813,6 +814,8 @@ int main(int argc, char **argv)
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
setlocale(LC_COLLATE, "");
parse_options(argc, argv); parse_options(argc, argv);
if (options->clean_cache) { if (options->clean_cache) {