diff options
author | Bert Münnich <ber.t@posteo.de> | 2017-10-24 21:43:36 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-10-24 21:43:36 +0200 |
commit | 2d34c4b9bfec8e7cafbb1a7494a5b6d79e0a5b4e (patch) | |
tree | 04bdafaae2a9c251508c78072e08944b3ea60a69 | |
parent | 96445c32687fe5ed4997d75a8551c082f04bce7f (diff) |
Set LC_COLLATE for -r file list sorting
Fixes issue #293.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -VERSION = git-20171023 +VERSION = git-20171024 srcdir = . VPATH = $(srcdir) @@ -25,6 +25,7 @@ #include <fcntl.h> #include <unistd.h> #include <errno.h> +#include <locale.h> #include <signal.h> #include <sys/select.h> #include <sys/stat.h> @@ -813,6 +814,8 @@ int main(int argc, char **argv) signal(SIGPIPE, SIG_IGN); + setlocale(LC_COLLATE, ""); + parse_options(argc, argv); if (options->clean_cache) { |