diff options
author | antirez <antirez@gmail.com> | 2013-07-12 12:06:05 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-07-12 13:38:43 +0200 |
commit | 123b221dc94627f9776e880956b629a8144a04a2 (patch) | |
tree | 794d8140e25b59ac7d18072e5cf2e6e5fd1b51aa | |
parent | cf1579a798f3dbc6274b2d0b662e3254465707fb (diff) | |
download | redis-123b221dc94627f9776e880956b629a8144a04a2.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 11c69629e..714d9b65f 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 */ @@ -2899,6 +2900,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()); |