Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
123b221d
Commit
123b221d
authored
Jul 12, 2013
by
antirez
Browse files
Use the environment locale for strcoll() collation.
parent
cf1579a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
123b221d
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment