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-10-27 11:05:51 -0300 |
commit | e9ee9cc3a0c414ec2a14a0817e89c4a46c8f93f0 (patch) | |
tree | 03f2375f8c5182ea2c08b6e6b29a793f6c6070fb | |
parent | d6a6dd54a13bfe079ae97eb016dd902e5dec5e60 (diff) | |
download | efl-e9ee9cc3a0c414ec2a14a0817e89c4a46c8f93f0.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]; |