+#include <locale.h>
+#include <libintl.h>
#include "gwion_util.h"
#include "gwion_ast.h"
#include "gwion_env.h"
return GW_ERROR;
}
+#define LOCALE_INFO INSTALL_PREFIX "/share"
+
ANN m_bool gwion_ini(const Gwion gwion, Arg* arg) {
+ setlocale(LC_ALL, NULL);
+ bindtextdomain (GWION_PACKAGE, LOCALE_INFO);
+ bindtextdomain (GWION_PACKAGE "_util", LOCALE_INFO);
+ bindtextdomain (GWION_PACKAGE "_ast", LOCALE_INFO);
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);
Arg arg = { .arg={.argc=argc, .argv=argv}, .loop=-1 };
signal(SIGINT, sig);
signal(SIGTERM, sig);
+ setlocale(LC_ALL, NULL);
struct Gwion_ gwion = {};
const m_bool ini = gwion_ini(&gwion, &arg);
arg_release(&arg);