Roberto Ierusalimschy 26 years ago
parent
commit
2431534f10
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lua.c

+ 2 - 2
lua.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lua.c,v 1.16 1999/01/06 13:12:41 roberto Exp roberto $
+** $Id: lua.c,v 1.17 1999/01/08 16:47:44 roberto Exp roberto $
 ** Lua stand-alone interpreter
 ** Lua stand-alone interpreter
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -133,8 +133,8 @@ int main (int argc, char *argv[])
   int i;
   int i;
   lua_open();
   lua_open();
   lua_pushstring("> "); lua_setglobal("_PROMPT");
   lua_pushstring("> "); lua_setglobal("_PROMPT");
-  lua_userinit();
   setlocale(LC_ALL, "");
   setlocale(LC_ALL, "");
+  lua_userinit();
   if (argc < 2) {  /* no arguments? */
   if (argc < 2) {  /* no arguments? */
     if (isatty(0)) {
     if (isatty(0)) {
       printf("%s  %s\n", LUA_VERSION, LUA_COPYRIGHT);
       printf("%s  %s\n", LUA_VERSION, LUA_COPYRIGHT);