diff options
author | antirez <antirez@gmail.com> | 2013-07-12 12:06:05 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-07-12 13:39:48 +0200 |
commit | 98757b4a6e8c8f98dd0739fc66ad595b2050eed8 (patch) | |
tree | 3cdcef0070dc37fd1726662c4b1f4b1ea106be54 | |
parent | 18fabeb264193cab98869e514d771502d3456d60 (diff) | |
download | redis-98757b4a6e8c8f98dd0739fc66ad595b2050eed8.tar.gz |
Use the environment locale for strcoll() collation.
-rw-r--r-- | src/redis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/redis.c b/src/redis.c index 7eea63d83..5d05f2406 100644 --- a/src/redis.c +++ b/src/redis.c @@ -49,6 +49,7 @@ #include <math.h> #include <sys/resource.h> #include <sys/utsname.h> +#include <locale.h> /* Our shared "common" objects */ @@ -2814,6 +2815,7 @@ int main(int argc, char **argv) { #ifdef INIT_SETPROCTITLE_REPLACEMENT spt_init(argc, argv); #endif + setlocale(LC_COLLATE,""); zmalloc_enable_thread_safeness(); zmalloc_set_oom_handler(redisOutOfMemoryHandler); srand(time(NULL)^getpid()); |