Krolyxon
Commit 2d34c4b

Branches

Refs →

nsxiv2d34c4b

Set LC_COLLATE for -r file list sorting

Fixes issue #293.
Author
Bert Münnich
Date
2017-10-24 21:43 +0200
Parent
96445c3
Commit
2d34c4b9bfec8e7cafbb1a7494a5b6d79e0a5b4e

+4 −1

2 files changed

  1. M Makefile +1 −1
  2. M main.c +3 −0
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20171023
1+VERSION = git-20171024
22
33 srcdir = .
44 VPATH = $(srcdir)
M main.c View
@@ -25,6 +25,7 @@
2525 #include <fcntl.h>
2626 #include <unistd.h>
2727 #include <errno.h>
28+#include <locale.h>
2829 #include <signal.h>
2930 #include <sys/select.h>
3031 #include <sys/stat.h>
@@ -813,6 +814,8 @@ int main(int argc, char **argv)
813814
814815 signal(SIGPIPE, SIG_IGN);
815816
817+ setlocale(LC_COLLATE, "");
818+
816819 parse_options(argc, argv);
817820
818821 if (options->clean_cache) {