On May 14, 2009, at 10:23 AM, Nicholas Riley wrote:
> In article <
4A0B1C23.2050909@...>,
> Weiqi Gao <
weiqigao@...> wrote:
>
>> While we are talking about the repl, I noticed that when running
>> jython
>> under Cygwin, the prompts are not showing up. It seems that both
>> sys.ps1 and sys.ps2 are empty strings.
>
> That happens because Jython thinks you're not running it
> interactively (isatty). CPython should do the same thing,
> essentially.
> Unfortunately this check is quite a bit less reliable on Windows
> than it
> is on Unix... if you can think of a better solution, file a bug.
>
Nick, any idea why isatty fails here? Incorporating Weiqi's changes is
no problem, but having to workaround isatty failing with JYTHON_OPTS="-
i" sucks.
Even isatty's pure java fallback should be returning true for the
console streams.
What's frustrating about these cygwin problems are none of us
developers who've tried it have had any problems with it, even without
Weqi's changes.
--
Philip Jenvey
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users