From c49fa03620cfd91241c19667a12b07538d16e204 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 20 Dec 2020 17:19:07 +0100 Subject: [PATCH] :art: Improve locale (still optionnal) --- src/gwion.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gwion.c b/src/gwion.c index 6f302bcc..52735794 100644 --- a/src/gwion.c +++ b/src/gwion.c @@ -74,10 +74,12 @@ ANN static m_bool gwion_ok(const Gwion gwion, Arg* arg) { #define LOCALE_INFO INSTALL_PREFIX "/share" ANN m_bool gwion_ini(const Gwion gwion, Arg* arg) { +#ifdef USE_GETTEXT setlocale(LC_ALL, NULL); bindtextdomain (GWION_PACKAGE, LOCALE_INFO); bindtextdomain (GWION_PACKAGE "_util", LOCALE_INFO); bindtextdomain (GWION_PACKAGE "_ast", LOCALE_INFO); +#ifdef USE_GETTEXT gwion->mp = mempool_ini((sizeof(struct VM_Shred_) + SIZEOF_REG + SIZEOF_MEM)); gwion->st = new_symbol_table(gwion->mp, 65347); gwion->ppa = mp_calloc(gwion->mp, PPArg); -- 2.43.0