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
This commit is contained in:
Felipe Magno de Almeida 2020-10-27 11:04:52 -03:00
parent d6a6dd54a1
commit e9ee9cc3a0
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@
*/
static char _evil_locale_buf[18];
#undef setlocale
char *evil_setlocale(int category, const char *locale)
{
char buf[9];