mirror of https://github.com/rusefi/lua.git
no more automatic setlocale.
This commit is contained in:
parent
88b65da4d7
commit
3fdab3981b
9
lua.c
9
lua.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lua.c,v 1.18 1999/01/26 11:50:58 roberto Exp roberto $
|
** $Id: lua.c,v 1.19 1999/02/04 17:47:59 roberto Exp roberto $
|
||||||
** Lua stand-alone interpreter
|
** Lua stand-alone interpreter
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -15,12 +15,6 @@
|
||||||
#include "lualib.h"
|
#include "lualib.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef OLD_ANSI
|
|
||||||
#include <locale.h>
|
|
||||||
#else
|
|
||||||
#define setlocale(a,b) 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _POSIX_SOURCE
|
#ifdef _POSIX_SOURCE
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
@ -131,7 +125,6 @@ int main (int argc, char *argv[])
|
||||||
int i;
|
int i;
|
||||||
lua_open();
|
lua_open();
|
||||||
lua_pushstring("> "); lua_setglobal("_PROMPT");
|
lua_pushstring("> "); lua_setglobal("_PROMPT");
|
||||||
setlocale(LC_ALL, "");
|
|
||||||
lua_userinit();
|
lua_userinit();
|
||||||
if (argc < 2) { /* no arguments? */
|
if (argc < 2) { /* no arguments? */
|
||||||
if (isatty(0)) {
|
if (isatty(0)) {
|
||||||
|
|
Loading…
Reference in New Issue