提交 98757b4a 编写于 作者: A antirez

Use the environment locale for strcoll() collation.

上级 18fabeb2
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册