Fix for bug 302849: js shell calls setlocal, r=shaver

This commit is contained in:
igor%mir2.org 2005-11-17 17:32:00 +00:00
Родитель b22aa33e7d
Коммит cbf3b32676
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -46,6 +46,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include "jstypes.h"
#include "jsarena.h"
#include "jsutil.h"
@ -2502,6 +2503,8 @@ main(int argc, char **argv, char **envp)
gStackBase = (jsuword)&stackDummy;
setlocale(LC_ALL, "");
#ifdef XP_OS2
/* these streams are normally line buffered on OS/2 and need a \n, *
* so we need to unbuffer then to get a reasonable prompt */