Przeglądaj źródła

Set LC_COLLATE for -r file list sorting

Fixes issue #293.
master
Bert Münnich 7 lat temu
rodzic
commit
2d34c4b9bf
2 zmienionych plików z 4 dodań i 1 usunięć
  1. +1
    -1
      Makefile
  2. +3
    -0
      main.c

+ 1
- 1
Makefile Wyświetl plik

@@ -1,4 +1,4 @@
VERSION = git-20171023
VERSION = git-20171024

srcdir = .
VPATH = $(srcdir)


+ 3
- 0
main.c Wyświetl plik

@@ -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) {


Ładowanie…
Anuluj
Zapisz