locale fix

This commit is contained in:
p.kosyh 2010-02-08 05:47:56 +00:00
parent 564a797575
commit 9b908d86bd

View file

@ -404,6 +404,7 @@ static const luaL_Reg base_funcs[] = {
int instead_init(void)
{
setlocale(LC_ALL,"");
setlocale(LC_NUMERIC,"C"); /* to avoid . -> , in numbers */
// strcpy(curcp, "UTF-8");
/* initialize Lua */
L = lua_open();