Commit 123b221d authored by antirez's avatar antirez
Browse files

Use the environment locale for strcoll() collation.

parent cf1579a7
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include <math.h> #include <math.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <locale.h>
/* Our shared "common" objects */ /* Our shared "common" objects */
...@@ -2899,6 +2900,7 @@ int main(int argc, char **argv) { ...@@ -2899,6 +2900,7 @@ int main(int argc, char **argv) {
#ifdef INIT_SETPROCTITLE_REPLACEMENT #ifdef INIT_SETPROCTITLE_REPLACEMENT
spt_init(argc, argv); spt_init(argc, argv);
#endif #endif
setlocale(LC_COLLATE,"");
zmalloc_enable_thread_safeness(); zmalloc_enable_thread_safeness();
zmalloc_set_oom_handler(redisOutOfMemoryHandler); zmalloc_set_oom_handler(redisOutOfMemoryHandler);
srand(time(NULL)^getpid()); srand(time(NULL)^getpid());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment