aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-06-24 16:42:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-06-24 16:42:02 -0300
commit3fdab3981b92f9f76beef9c22ef55f9d537fdfd4 (patch)
tree9815ee7beff7cc87aefa0ad085904687511bd5ab
parent88b65da4d7e834b357d99670842e27b9dfde2fb8 (diff)
downloadlua-3fdab3981b92f9f76beef9c22ef55f9d537fdfd4.tar.gz
lua-3fdab3981b92f9f76beef9c22ef55f9d537fdfd4.tar.bz2
lua-3fdab3981b92f9f76beef9c22ef55f9d537fdfd4.zip
no more automatic setlocale.
-rw-r--r--lua.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lua.c b/lua.c
index a7ba2a42..88436627 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.18 1999/01/26 11:50:58 roberto Exp roberto $ 2** $Id: lua.c,v 1.19 1999/02/04 17:47:59 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -15,12 +15,6 @@
15#include "lualib.h" 15#include "lualib.h"
16 16
17 17
18#ifndef OLD_ANSI
19#include <locale.h>
20#else
21#define setlocale(a,b) 0
22#endif
23
24#ifdef _POSIX_SOURCE 18#ifdef _POSIX_SOURCE
25#include <unistd.h> 19#include <unistd.h>
26#else 20#else
@@ -131,7 +125,6 @@ int main (int argc, char *argv[])
131 int i; 125 int i;
132 lua_open(); 126 lua_open();
133 lua_pushstring("> "); lua_setglobal("_PROMPT"); 127 lua_pushstring("> "); lua_setglobal("_PROMPT");
134 setlocale(LC_ALL, "");
135 lua_userinit(); 128 lua_userinit();
136 if (argc < 2) { /* no arguments? */ 129 if (argc < 2) { /* no arguments? */
137 if (isatty(0)) { 130 if (isatty(0)) {