mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
Use the environment locale for strcoll() collation.
This commit is contained in:
parent
cf1579a798
commit
123b221dc9
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user