From 123b221dc94627f9776e880956b629a8144a04a2 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 12 Jul 2013 12:06:05 +0200 Subject: [PATCH] Use the environment locale for strcoll() collation. --- src/redis.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/redis.c b/src/redis.c index 11c69629..714d9b65 100644 --- a/src/redis.c +++ b/src/redis.c @@ -49,6 +49,7 @@ #include #include #include +#include /* 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());