diff options
author | Felipe Magno de Almeida <felipe@expertise.dev> | 2020-10-27 11:04:52 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertise.dev> | 2020-12-14 11:39:25 -0300 |
commit | 1a7dccfcaedd465099dedee1ea8639651ad624df (patch) | |
tree | 304dbb2f5d398a85440096327538b2841373f45c | |
parent | eedf6cb339db7af213f923d6a9edb1427ae97a2c (diff) | |
download | efl-1a7dccfcaedd465099dedee1ea8639651ad624df.tar.gz |
evil: undef setlocale to avoid recursion
Summary:
evil_setlocale implementation must not call itself, so it must #undef
setlocale to avoid replacing with evil_setlocale.
Reviewers: vtorri, jptiz, lucas
Reviewed By: vtorri, jptiz
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12184
-rw-r--r-- | src/lib/evil/evil_locale.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evil/evil_locale.c b/src/lib/evil/evil_locale.c index 15610da6a6..c932b27a69 100644 --- a/src/lib/evil/evil_locale.c +++ b/src/lib/evil/evil_locale.c @@ -35,6 +35,8 @@ */ static char _evil_locale_buf[18]; +#undef setlocale + char *evil_setlocale(int category, const char *locale) { char buf[9]; |